pub enum ValueReq {
Required,
Default(ArgValue),
Optional,
Prohibited,
}
Expand description
Requirements for attribute or named argument value presence for a values
with known class. If the value class is not known, use ArgValueReq
instead.
Variants§
Required
Argument or an attribute must hold a value
Default(ArgValue)
Argument or an attribute must hold a value; if the value is not present it will be substituted for the default value provided as the inner field
Optional
Argument or an attribute may or may not hold a value
Prohibited
Argument or an attribute must not hold a value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValueReq
impl RefUnwindSafe for ValueReq
impl !Send for ValueReq
impl !Sync for ValueReq
impl Unpin for ValueReq
impl UnwindSafe for ValueReq
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 264 bytes
Size for each variant:
Required
: 0 bytesDefault
: 264 bytesOptional
: 0 bytesProhibited
: 0 bytes