pub struct ArgSpec {
pub required: bool,
pub no_leading_space: bool,
pub nullable: bool,
pub kind: ValueKind,
pub form: ArgForm,
}Fields§
§required: bool§no_leading_space: bool§nullable: bool§kind: ValueKind§form: ArgFormImplementations§
Source§impl ArgSpec
impl ArgSpec
pub const fn new(required: bool, kind: ValueKind) -> ArgSpec
pub const fn with_form( required: bool, no_leading_space: bool, kind: ValueKind, form: ArgForm, ) -> ArgSpec
pub const fn mandatory(mode: ContentMode) -> ArgSpec
pub const fn optional(mode: ContentMode) -> ArgSpec
pub const fn is_required(&self) -> bool
pub const fn is_optional(&self) -> bool
Trait Implementations§
impl Eq for ArgSpec
impl StructuralPartialEq for ArgSpec
Auto Trait Implementations§
impl Freeze for ArgSpec
impl RefUnwindSafe for ArgSpec
impl Send for ArgSpec
impl Sync for ArgSpec
impl Unpin for ArgSpec
impl UnsafeUnpin for ArgSpec
impl UnwindSafe for ArgSpec
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.