#[non_exhaustive]pub struct ImplModifiers {
pub defaultness: Option<Default>,
pub polarity: Option<Not>,
}Expand description
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 (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.defaultness: Option<Default>Unstable syntax: RFC 1210 “Impl specialization”
polarity: Option<Not>Unstable syntax: #68318 “Negative impls”
Implementations§
Source§impl ImplModifiers
impl ImplModifiers
pub fn require_empty(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ImplModifiers
Available on crate feature full only.
impl Clone for ImplModifiers
Available on crate feature
full only.Source§impl Debug for ImplModifiers
Available on crate feature full only.
impl Debug for ImplModifiers
Available on crate feature
full only.Source§impl Default for ImplModifiers
impl Default for ImplModifiers
impl Eq for ImplModifiers
Available on crate feature
full only.Source§impl Hash for ImplModifiers
Available on crate feature full only.
impl Hash for ImplModifiers
Available on crate feature
full only.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§
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