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 function such as 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 more
sourceimpl Debug for NonExhaustive
impl Debug for NonExhaustive
sourceimpl Default for NonExhaustive
impl Default for NonExhaustive
sourcefn default() -> NonExhaustive
fn default() -> NonExhaustive
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NonExhaustive) -> bool
fn ne(&self, other: &NonExhaustive) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more