quil.expression
The Python wrapper for [Expression::Address
], creating a [PyExpression
] and taking a Python argument.
The Python wrapper for [Expression::FunctionCall
], creating a [PyExpression
] and taking a Python argument.
The Python wrapper for [Expression::Infix
], creating a [PyExpression
] and taking a Python argument.
The Python wrapper for [Expression::Number
], creating a [PyExpression
] and taking a Python argument.
The Python wrapper for [Expression::Prefix
], creating a [PyExpression
] and taking a Python argument.
The Python wrapper for [Expression::Variable
], creating a [PyExpression
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match Expression::Variant(x) => x
for every variant constructor in [Expression
]
Returns x
if this [PyExpression
] wraps a Expression::address
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::address
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyExpression
] wraps a [Expression::function_call
] value
Returns x
if this [PyExpression
] wraps a Expression::function_call
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::function_call
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyExpression
] wraps a Expression::infix
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::infix
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyExpression
] wraps a Expression::number
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::number
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyExpression
] wraps a Expression::prefix
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::prefix
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyExpression
] wraps a Expression::variable
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyExpression
] wraps a Expression::variable
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Inappropriate argument value (of correct type).
Inappropriate argument value (of correct type).