pub struct WhenBinding {
pub variable: VariableRef,
pub expr: MutOrImmutableExpression,
}
Fields§
§variable: VariableRef
§expr: MutOrImmutableExpression
Implementations§
Source§impl WhenBinding
impl WhenBinding
pub const fn has_expression(&self) -> bool
Trait Implementations§
Source§impl Clone for WhenBinding
impl Clone for WhenBinding
Source§fn clone(&self) -> WhenBinding
fn clone(&self) -> WhenBinding
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 WhenBinding
impl RefUnwindSafe for WhenBinding
impl !Send for WhenBinding
impl !Sync for WhenBinding
impl Unpin for WhenBinding
impl UnwindSafe for WhenBinding
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