Struct ImplModifiers
#[non_exhaustive]
pub struct ImplModifiers { pub defaultness: Option<Default>, pub polarity: Option<Not> }
Additional optional information about an impl.
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 impl)
Fields
Implementations
impl ImplModifiers
fn require_empty(&self) -> Result<()>
Trait Implementations
impl Clone for ImplModifiers
fn clone(&self) -> Self
impl Default for ImplModifiers
fn default() -> Self
Auto Trait Implementations
impl !Send for ImplModifiers
impl !Sync for ImplModifiers
impl Freeze for ImplModifiers
impl RefUnwindSafe for ImplModifiers
impl Unpin for ImplModifiers
impl UnsafeUnpin for ImplModifiers
impl UnwindSafe for ImplModifiers
Blanket Implementations
impl<T> Any for ImplModifiers
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ImplModifiers
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ImplModifiers
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ImplModifiers
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ImplModifiers
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ImplModifiers
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ImplModifiers
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 ImplModifiers
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ImplModifiers
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>