#[non_exhaustive]pub struct TypeModifiers {
pub defaultness: Option<Default>,
}Expand description
Additional optional information about a type alias.
This data structure may grow to accommodate future Rust language changes.
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”
Implementations§
Source§impl TypeModifiers
impl TypeModifiers
pub fn require_empty(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for TypeModifiers
Available on crate feature full only.
impl Clone for TypeModifiers
Available on crate feature
full only.Source§impl Debug for TypeModifiers
Available on crate feature full only.
impl Debug for TypeModifiers
Available on crate feature
full only.Source§impl Default for TypeModifiers
impl Default for TypeModifiers
impl Eq for TypeModifiers
Available on crate feature
full only.Source§impl Hash for TypeModifiers
Available on crate feature full only.
impl Hash for TypeModifiers
Available on crate feature
full only.Auto Trait Implementations§
impl !Send for TypeModifiers
impl !Sync for TypeModifiers
impl Freeze for TypeModifiers
impl RefUnwindSafe for TypeModifiers
impl Unpin for TypeModifiers
impl UnsafeUnpin for TypeModifiers
impl UnwindSafe for TypeModifiers
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