Struct vulkano::NonExhaustive
source · [−]pub struct NonExhaustive(_);
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
sourceimpl Clone for NonExhaustive
impl Clone for NonExhaustive
sourcefn clone(&self) -> NonExhaustive
fn clone(&self) -> NonExhaustive
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NonExhaustive
impl Debug for NonExhaustive
sourceimpl Hash for NonExhaustive
impl Hash for NonExhaustive
sourceimpl PartialEq<NonExhaustive> for NonExhaustive
impl PartialEq<NonExhaustive> for NonExhaustive
sourcefn eq(&self, other: &NonExhaustive) -> bool
fn eq(&self, other: &NonExhaustive) -> bool
impl Copy for NonExhaustive
impl Eq for NonExhaustive
impl StructuralEq for NonExhaustive
impl StructuralPartialEq for NonExhaustive
Auto Trait Implementations
impl RefUnwindSafe for NonExhaustive
impl Send for NonExhaustive
impl Sync for NonExhaustive
impl Unpin for NonExhaustive
impl UnwindSafe for NonExhaustive
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more