pub enum Req {
Optional,
Required,
NoneOrMore,
OneOrMore,
}
Variants§
Implementations§
source§impl Req
impl Req
pub fn is_required(self) -> bool
pub fn is_multiple(self) -> bool
Trait Implementations§
source§impl Ord for Req
impl Ord for Req
source§impl PartialOrd<Req> for Req
impl PartialOrd<Req> for Req
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Req
impl Eq for Req
impl StructuralEq for Req
impl StructuralPartialEq for Req
Auto Trait Implementations§
impl RefUnwindSafe for Req
impl Send for Req
impl Sync for Req
impl Unpin for Req
impl UnwindSafe for Req
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.