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