pub struct NonExhaustive(/* private fields */);
Expand description
A helper type for non-exhaustive structs.
This type cannot be constructed outside Vulkano. Structures with a field of this type can only
be constructed by calling a constructor function or Default::default()
. The effect is similar
to the standard Rust #[non_exhaustive]
attribute, except that it does not prevent update
syntax from being used.
Trait Implementations§
Source§impl Clone for NonExhaustive
impl Clone for NonExhaustive
Source§fn clone(&self) -> NonExhaustive
fn clone(&self) -> NonExhaustive
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NonExhaustive
impl Debug for NonExhaustive
Source§impl Hash for NonExhaustive
impl Hash for NonExhaustive
Source§impl PartialEq for NonExhaustive
impl PartialEq for NonExhaustive
impl Copy for NonExhaustive
impl Eq for NonExhaustive
impl StructuralPartialEq for NonExhaustive
Auto Trait Implementations§
impl Freeze for NonExhaustive
impl RefUnwindSafe for NonExhaustive
impl Send for NonExhaustive
impl Sync for NonExhaustive
impl Unpin for NonExhaustive
impl UnwindSafe for NonExhaustive
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