pub struct GenericAssoc {
pub ty: Option<TypeName>,
pub value: Expr,
pub range: SourceRange,
}Expand description
One association of a _Generic selection.
Fields§
§ty: Option<TypeName>The type this association is chosen for; None for default:.
value: ExprThe value the selection has when this association is chosen.
range: SourceRangeWhere the association was written.
Trait Implementations§
Source§impl Clone for GenericAssoc
impl Clone for GenericAssoc
Source§impl Debug for GenericAssoc
impl Debug 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