Struct rustc_parse::parser::ty::BoundModifiers
source · struct BoundModifiers {
bound_polarity: BoundPolarity,
maybe_const: Option<Span>,
}
Expand description
Any ?
, !
, or ~const
modifiers that appear at the start of a bound.
Fields§
§bound_polarity: BoundPolarity
?Trait
.
maybe_const: Option<Span>
~const Trait
.
Implementations§
source§impl BoundModifiers
impl BoundModifiers
fn to_trait_bound_modifier(&self) -> TraitBoundModifier
Auto Trait Implementations§
impl RefUnwindSafe for BoundModifiers
impl !Send for BoundModifiers
impl !Sync for BoundModifiers
impl Unpin for BoundModifiers
impl UnwindSafe for BoundModifiers
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes