Struct TraitModifiers
#[non_exhaustive]
pub struct TraitModifiers { pub auto_token: Option<Auto> }
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
auto_token: Option<Auto>Unstable syntax: RFC 127 "Auto traits"
Implementations
impl TraitModifiers
fn require_empty(&self) -> Result<()>
Trait Implementations
impl Clone for TraitModifiers
fn clone(&self) -> Self
impl Default for TraitModifiers
fn default() -> Self
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
impl<T> Any for TraitModifiers
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TraitModifiers
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TraitModifiers
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TraitModifiers
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TraitModifiers
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TraitModifiers
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for TraitModifiers
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TraitModifiers
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TraitModifiers
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>