[−][src]Struct rexsgdata::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]
&self
) -> impl Iterator<Item = u8>
pub fn iter(
&self
) -> impl Iterator<Item = &[u8]>
[src]
&self
) -> impl Iterator<Item = &[u8]>
Get a view of an Element
as an iterator of slices
Note Zle
is represented by the same slice repeated
Trait Implementations
impl<O> From<Zle> for SgData<O> where
O: Clone,
[src]
O: Clone,
impl From<Zle> for Vec<u8>
[src]
impl Clone for Zle
[src]
fn clone(&self) -> Zle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Zle> for Zle
[src]
impl Default for Zle
[src]
impl Debug for Zle
[src]
impl Serialize for Zle
[src]
impl<'de> Deserialize<'de> for Zle
[src]
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,