[][src]Struct rexsgdata::Zle

pub struct Zle(_);

ZLE (Zero Length Encoding) is a compact representation of the sequence of zeros

Methods

impl Zle[src]

pub fn new(capacity: usize) -> Self[src]

Constructs fresh Zle of a specified size

pub fn size(&self) -> usize[src]

Get the number of slices this Zle represents

pub fn is_empty(&self) -> bool[src]

pub fn iter_bytes(&self) -> impl Iterator<Item = u8>[src]

pub fn iter(&self) -> impl Iterator<Item = &[u8]>[src]

Get a view of an Element as an iterator of slices Note Zle is represented by the same slice repeated

Trait Implementations

impl PartialEq<Zle> for Zle[src]

impl Default for Zle[src]

impl Clone for Zle[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<O> From<Zle> for SgData<O> where
    O: Clone
[src]

impl From<Zle> for Vec<u8>[src]

impl Debug for Zle[src]

impl Serialize for Zle[src]

impl<'de> Deserialize<'de> for Zle[src]

Auto Trait Implementations

impl Send for Zle

impl Sync for Zle

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]