pub struct GenericAssoc {
pub ty: Option<TypeNameId>,
pub value: ExprId,
}Expand description
One arm of a _Generic selection.
Fields§
§ty: Option<TypeNameId>The type this arm matches, and None for the default arm.
value: ExprIdThe expression the arm gives, which is only evaluated if the arm is chosen.
Trait Implementations§
Source§impl Clone for GenericAssoc
impl Clone for GenericAssoc
Source§fn clone(&self) -> GenericAssoc
fn clone(&self) -> GenericAssoc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GenericAssoc
Source§impl Debug for GenericAssoc
impl Debug for GenericAssoc
impl Eq for GenericAssoc
Source§impl PartialEq for GenericAssoc
impl PartialEq for GenericAssoc
impl StructuralPartialEq for GenericAssoc
Auto Trait Implementations§
impl Freeze for GenericAssoc
impl RefUnwindSafe for GenericAssoc
impl Send for GenericAssoc
impl Sync for GenericAssoc
impl Unpin for GenericAssoc
impl UnsafeUnpin for GenericAssoc
impl UnwindSafe for GenericAssoc
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