pub struct ConstantOrWriteNode<'pr> { /* private fields */ }Expand description
Represents the use of the ||= operator for assignment to a constant.
Target ||= value
^^^^^^^^^^^^^^^^Implementationsยง
Sourceยงimpl<'pr> ConstantOrWriteNode<'pr>
impl<'pr> ConstantOrWriteNode<'pr>
Sourcepub fn name(&self) -> ConstantId<'pr>
pub fn name(&self) -> ConstantId<'pr>
Returns the name param
Sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc param
Trait Implementationsยง
Auto Trait Implementationsยง
impl<'pr> !Send for ConstantOrWriteNode<'pr>
impl<'pr> !Sync for ConstantOrWriteNode<'pr>
impl<'pr> !UnwindSafe for ConstantOrWriteNode<'pr>
impl<'pr> Freeze for ConstantOrWriteNode<'pr>
impl<'pr> RefUnwindSafe for ConstantOrWriteNode<'pr>
impl<'pr> Unpin for ConstantOrWriteNode<'pr>
impl<'pr> UnsafeUnpin for ConstantOrWriteNode<'pr>
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