pub enum ArgumentExpression {
Expression(Expression),
MaterializedExpression(Expression),
BorrowMutableReference(SingleLocationExpression),
}
Variants§
Expression(Expression)
MaterializedExpression(Expression)
BorrowMutableReference(SingleLocationExpression)
Implementations§
Source§impl ArgumentExpression
impl ArgumentExpression
pub fn ty(&self) -> TypeRef
pub fn expect_immutable(self) -> Result<Expression, SemanticError>
pub const fn expect_immutable_ref(&self) -> Result<&Expression, SemanticError>
pub const fn is_mutable_reference(&self) -> bool
pub const fn node(&self) -> &Node
Trait Implementations§
Source§impl Clone for ArgumentExpression
impl Clone for ArgumentExpression
Source§fn clone(&self) -> ArgumentExpression
fn clone(&self) -> ArgumentExpression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ArgumentExpression
impl RefUnwindSafe for ArgumentExpression
impl !Send for ArgumentExpression
impl !Sync for ArgumentExpression
impl Unpin for ArgumentExpression
impl UnwindSafe for ArgumentExpression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more