Enum dlt_core::dlt::TypeLength
source · pub enum TypeLength {
BitLength8,
BitLength16,
BitLength32,
BitLength64,
BitLength128,
}
Expand description
Represents the bit width of a value type
Variants§
Implementations§
source§impl TypeLength
impl TypeLength
pub fn width_in_bytes(self) -> usize
Trait Implementations§
source§impl Clone for TypeLength
impl Clone for TypeLength
source§fn clone(&self) -> TypeLength
fn clone(&self) -> TypeLength
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 TypeLength
impl Debug for TypeLength
source§impl PartialEq<TypeLength> for TypeLength
impl PartialEq<TypeLength> for TypeLength
source§fn eq(&self, other: &TypeLength) -> bool
fn eq(&self, other: &TypeLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TypeLength
impl Serialize for TypeLength
impl Copy for TypeLength
impl StructuralPartialEq for TypeLength
Auto Trait Implementations§
impl RefUnwindSafe for TypeLength
impl Send for TypeLength
impl Sync for TypeLength
impl Unpin for TypeLength
impl UnwindSafe for TypeLength
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