[−][src]Struct rexsgdata::Zle
ZLE (Zero Length Encoding) is a compact representation of the sequence of zeros
Implementations
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 Clone for Zle[src]
impl Debug for Zle[src]
impl Default for Zle[src]
impl<'de> Deserialize<'de> for Zle[src]
pub fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl<O> From<Zle> for SgData<O> where
O: Clone, [src]
O: Clone,
impl PartialEq<Zle> for Zle[src]
impl Serialize for Zle[src]
impl StructuralPartialEq for Zle[src]
Auto Trait Implementations
impl RefUnwindSafe for Zle[src]
impl Send for Zle[src]
impl Sync for Zle[src]
impl Unpin for Zle[src]
impl UnwindSafe for Zle[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,