#[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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsumptionBlockType
Source§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
impl Eq for ConsumptionBlockType
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 (const: unstable) · 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 for ConsumptionBlockType
impl PartialEq for ConsumptionBlockType
Source§impl PartialOrd for ConsumptionBlockType
impl PartialOrd for ConsumptionBlockType
impl StructuralPartialEq for ConsumptionBlockType
Source§impl YaDeserialize for ConsumptionBlockType
impl YaDeserialize for ConsumptionBlockType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>where
Self: Sized,
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,
Auto Trait Implementations§
impl Freeze for ConsumptionBlockType
impl RefUnwindSafe for ConsumptionBlockType
impl Send for ConsumptionBlockType
impl Sync for ConsumptionBlockType
impl Unpin for ConsumptionBlockType
impl UnsafeUnpin 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