#[non_exhaustive]pub struct FnModifiers {
pub defaultness: Option<Default>,
}Available on crate feature
full only.Expand description
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 FnModifiers
impl FnModifiers
pub fn require_empty(&self) -> Result<()>
Available on crate feature
parsing only.Trait Implementations§
Source§impl Clone for FnModifiers
Available on crate feature clone-impls only.
impl Clone for FnModifiers
Available on crate feature
clone-impls only.Source§impl Debug for FnModifiers
Available on crate feature extra-traits only.
impl Debug for FnModifiers
Available on crate feature
extra-traits only.Source§impl Default for FnModifiers
impl Default for FnModifiers
impl Eq for FnModifiers
Available on crate feature
extra-traits only.Source§impl Hash for FnModifiers
Available on crate feature extra-traits only.
impl Hash for FnModifiers
Available on crate feature
extra-traits only.Auto Trait Implementations§
impl !Send for FnModifiers
impl !Sync for FnModifiers
impl Freeze for FnModifiers
impl RefUnwindSafe for FnModifiers
impl Unpin for FnModifiers
impl UnsafeUnpin for FnModifiers
impl UnwindSafe for FnModifiers
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