#[non_exhaustive]pub struct TraitModifiers {
pub auto_token: Option<Auto>,
}Available on crate feature
full only.Expand description
Additional optional information about a trait.
This data structure may grow to accommodate future Rust language changes, including the following in-progress RFCs:
- RFC 3762 “Make trait methods callable in const contexts” (
const trait)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auto_token: Option<Auto>Unstable syntax: RFC 127 “Auto traits”
Implementations§
Source§impl TraitModifiers
impl TraitModifiers
pub fn require_empty(&self) -> Result<()>
Available on crate feature
parsing only.Trait Implementations§
Source§impl Clone for TraitModifiers
Available on crate feature clone-impls only.
impl Clone for TraitModifiers
Available on crate feature
clone-impls only.Source§impl Debug for TraitModifiers
Available on crate feature extra-traits only.
impl Debug for TraitModifiers
Available on crate feature
extra-traits only.Source§impl Default for TraitModifiers
impl Default for TraitModifiers
impl Eq for TraitModifiers
Available on crate feature
extra-traits only.Source§impl Hash for TraitModifiers
Available on crate feature extra-traits only.
impl Hash for TraitModifiers
Available on crate feature
extra-traits only.Auto Trait Implementations§
impl !Send for TraitModifiers
impl !Sync for TraitModifiers
impl Freeze for TraitModifiers
impl RefUnwindSafe for TraitModifiers
impl Unpin for TraitModifiers
impl UnsafeUnpin for TraitModifiers
impl UnwindSafe for TraitModifiers
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