Enum rexsgdata::Element
[−]
[src]
pub enum Element { Zero(usize), Iovec(iovec), }
Intermediate element that can represent either regular iovec
or a sequence of zeroes
Variants
Zero(usize)
A block of zeroes of a specified size
Iovec(iovec)
Regular iovec
Methods
impl Element
[src]
Trait Implementations
impl FromIterator<Element> for SgData
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Element>,
[src]
T: IntoIterator<Item = Element>,
Creates a value from an iterator. Read more
impl From<iovec> for Element
[src]
impl From<(*mut c_void, size_t)> for Element
[src]
impl Debug for Element
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Element
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Send for Element
[src]
impl Sync for Element
[src]
impl<'de> Deserialize<'de> for Element
[src]
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more