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
pub const fn node(&self) -> &Node
Trait Implementations§
Source§impl Clone for MutOrImmutableExpression
impl Clone for MutOrImmutableExpression
Source§fn clone(&self) -> MutOrImmutableExpression
fn clone(&self) -> MutOrImmutableExpression
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 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