pub enum PropRequirement {
Required,
Optional,
}Expand description
Whether a prop is required or optional.
Variants§
Trait Implementations§
Source§impl Clone for PropRequirement
impl Clone for PropRequirement
Source§fn clone(&self) -> PropRequirement
fn clone(&self) -> PropRequirement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PropRequirement
Source§impl Debug for PropRequirement
impl Debug for PropRequirement
impl Eq for PropRequirement
Source§impl PartialEq for PropRequirement
impl PartialEq for PropRequirement
Source§fn eq(&self, other: &PropRequirement) -> bool
fn eq(&self, other: &PropRequirement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PropRequirement
Auto Trait Implementations§
impl Freeze for PropRequirement
impl RefUnwindSafe for PropRequirement
impl Send for PropRequirement
impl Sync for PropRequirement
impl Unpin for PropRequirement
impl UnsafeUnpin for PropRequirement
impl UnwindSafe for PropRequirement
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