pub struct MutOrImmutableExpression {
pub expression_or_location: ArgumentExpressionOrLocation,
pub is_mutable: Option<Node>,
}
Fields§
§expression_or_location: ArgumentExpressionOrLocation
§is_mutable: Option<Node>
Implementations§
Source§impl MutOrImmutableExpression
impl MutOrImmutableExpression
pub fn expect_immutable(self) -> Result<Expression, SemanticError>
pub fn expect_immutable_ref(&self) -> Result<&Expression, SemanticError>
pub fn ty(&self) -> &Type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MutOrImmutableExpression
impl !RefUnwindSafe for MutOrImmutableExpression
impl !Send for MutOrImmutableExpression
impl !Sync for MutOrImmutableExpression
impl Unpin for MutOrImmutableExpression
impl !UnwindSafe for MutOrImmutableExpression
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