pub enum MutRefOrImmutableExpression {
Expression(Expression),
Location(SingleLocationExpression),
}Variants§
Expression(Expression)
Location(SingleLocationExpression)
Implementations§
Source§impl MutRefOrImmutableExpression
impl MutRefOrImmutableExpression
pub fn ty(&self) -> Type
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 MutRefOrImmutableExpression
impl Clone for MutRefOrImmutableExpression
Source§fn clone(&self) -> MutRefOrImmutableExpression
fn clone(&self) -> MutRefOrImmutableExpression
Returns a copy 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 MutRefOrImmutableExpression
impl RefUnwindSafe for MutRefOrImmutableExpression
impl !Send for MutRefOrImmutableExpression
impl !Sync for MutRefOrImmutableExpression
impl Unpin for MutRefOrImmutableExpression
impl UnwindSafe for MutRefOrImmutableExpression
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