Enum cbored::StructureLength
source · [−]pub enum StructureLength {
Indefinite,
Definite(Value),
}Variants
Indefinite
Definite(Value)
Implementations
sourceimpl StructureLength
impl StructureLength
pub fn is_indefinite(self) -> bool
Trait Implementations
sourceimpl Clone for StructureLength
impl Clone for StructureLength
sourcefn clone(&self) -> StructureLength
fn clone(&self) -> StructureLength
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StructureLength
impl Debug for StructureLength
sourceimpl From<Option<Value>> for StructureLength
impl From<Option<Value>> for StructureLength
sourcefn from(v: Option<Value>) -> StructureLength
fn from(v: Option<Value>) -> StructureLength
Converts to this type from the input type.
sourceimpl From<u64> for StructureLength
impl From<u64> for StructureLength
sourcefn from(v: u64) -> StructureLength
fn from(v: u64) -> StructureLength
Converts to this type from the input type.
impl Copy for StructureLength
Auto Trait Implementations
impl RefUnwindSafe for StructureLength
impl Send for StructureLength
impl Sync for StructureLength
impl Unpin for StructureLength
impl UnwindSafe for StructureLength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more