Enum sep2_common::packages::types::ConsumptionBlockType
source · #[repr(u8)]pub enum ConsumptionBlockType {
Show 17 variants
NotApplicable = 0,
Block1 = 1,
Block2 = 2,
Block3 = 3,
Block4 = 4,
Block5 = 5,
Block6 = 6,
Block7 = 7,
Block8 = 8,
Block9 = 9,
Block10 = 10,
Block11 = 11,
Block12 = 12,
Block13 = 13,
Block14 = 14,
Block15 = 15,
Block16 = 16,
}
Variants§
NotApplicable = 0
Block1 = 1
Block2 = 2
Block3 = 3
Block4 = 4
Block5 = 5
Block6 = 6
Block7 = 7
Block8 = 8
Block9 = 9
Block10 = 10
Block11 = 11
Block12 = 12
Block13 = 13
Block14 = 14
Block15 = 15
Block16 = 16
Trait Implementations§
source§impl Clone for ConsumptionBlockType
impl Clone for ConsumptionBlockType
source§fn clone(&self) -> ConsumptionBlockType
fn clone(&self) -> ConsumptionBlockType
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 ConsumptionBlockType
impl Debug for ConsumptionBlockType
source§impl Default for ConsumptionBlockType
impl Default for ConsumptionBlockType
source§fn default() -> ConsumptionBlockType
fn default() -> ConsumptionBlockType
Returns the “default value” for a type. Read more
source§impl Ord for ConsumptionBlockType
impl Ord for ConsumptionBlockType
source§fn cmp(&self, other: &ConsumptionBlockType) -> Ordering
fn cmp(&self, other: &ConsumptionBlockType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ConsumptionBlockType> for ConsumptionBlockType
impl PartialEq<ConsumptionBlockType> for ConsumptionBlockType
source§fn eq(&self, other: &ConsumptionBlockType) -> bool
fn eq(&self, other: &ConsumptionBlockType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConsumptionBlockType> for ConsumptionBlockType
impl PartialOrd<ConsumptionBlockType> for ConsumptionBlockType
source§fn partial_cmp(&self, other: &ConsumptionBlockType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConsumptionBlockType) -> Option<Ordering>
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 moresource§impl YaDeserialize for ConsumptionBlockType
impl YaDeserialize for ConsumptionBlockType
source§impl YaSerialize for ConsumptionBlockType
impl YaSerialize for ConsumptionBlockType
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Copy for ConsumptionBlockType
impl Eq for ConsumptionBlockType
impl StructuralEq for ConsumptionBlockType
impl StructuralPartialEq for ConsumptionBlockType
Auto Trait Implementations§
impl RefUnwindSafe for ConsumptionBlockType
impl Send for ConsumptionBlockType
impl Sync for ConsumptionBlockType
impl Unpin for ConsumptionBlockType
impl UnwindSafe for ConsumptionBlockType
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