Enum rgb::schema::Occurrences
source · #[repr(u8)]pub enum Occurrences {
Once,
NoneOrOnce,
NoneOrMore,
OnceOrMore,
NoneOrUpTo(u16),
OnceOrUpTo(u16),
Exactly(u16),
Range(RangeInclusive<u16>),
}
Variants§
Once
NoneOrOnce
NoneOrMore
OnceOrMore
NoneOrUpTo(u16)
OnceOrUpTo(u16)
Exactly(u16)
Range(RangeInclusive<u16>)
Implementations§
Trait Implementations§
source§impl Clone for Occurrences
impl Clone for Occurrences
source§fn clone(&self) -> Occurrences
fn clone(&self) -> Occurrences
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Occurrences
impl Debug for Occurrences
source§impl Default for Occurrences
impl Default for Occurrences
source§fn default() -> Occurrences
fn default() -> Occurrences
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Occurrences
impl<'de> Deserialize<'de> for Occurrences
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Occurrences
impl Hash for Occurrences
source§impl PartialEq for Occurrences
impl PartialEq for Occurrences
source§fn eq(&self, other: &Occurrences) -> bool
fn eq(&self, other: &Occurrences) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Occurrences
impl Serialize for Occurrences
source§impl StrictDecode for Occurrences
impl StrictDecode for Occurrences
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictEncode for Occurrences
impl StrictEncode for Occurrences
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictStruct for Occurrences
impl StrictStruct for Occurrences
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for Occurrences
impl StrictType for Occurrences
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl TryFrom<RangeInclusive<u16>> for Occurrences
impl TryFrom<RangeInclusive<u16>> for Occurrences
impl Eq for Occurrences
impl StrictProduct for Occurrences
impl StructuralEq for Occurrences
impl StructuralPartialEq for Occurrences
Auto Trait Implementations§
impl RefUnwindSafe for Occurrences
impl Send for Occurrences
impl Sync for Occurrences
impl Unpin for Occurrences
impl UnwindSafe for Occurrences
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.