Struct argdata::values::Binary [−][src]
pub struct Binary<'d> { /* fields omitted */ }
Methods
impl<'d> Binary<'d>
[src]
impl<'d> Binary<'d>
Trait Implementations
impl<'d> Clone for Binary<'d>
[src]
impl<'d> Clone for Binary<'d>
fn clone(&self) -> Binary<'d>
[src]
fn clone(&self) -> Binary<'d>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'d> Copy for Binary<'d>
[src]
impl<'d> Copy for Binary<'d>
impl<'d> PartialEq for Binary<'d>
[src]
impl<'d> PartialEq for Binary<'d>
fn eq(&self, other: &Binary<'d>) -> bool
[src]
fn eq(&self, other: &Binary<'d>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Binary<'d>) -> bool
[src]
fn ne(&self, other: &Binary<'d>) -> bool
This method tests for !=
.
impl<'d> Eq for Binary<'d>
[src]
impl<'d> Eq for Binary<'d>
impl<'d> PartialOrd for Binary<'d>
[src]
impl<'d> PartialOrd for Binary<'d>
fn partial_cmp(&self, other: &Binary<'d>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Binary<'d>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Binary<'d>) -> bool
[src]
fn lt(&self, other: &Binary<'d>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Binary<'d>) -> bool
[src]
fn le(&self, other: &Binary<'d>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Binary<'d>) -> bool
[src]
fn gt(&self, other: &Binary<'d>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Binary<'d>) -> bool
[src]
fn ge(&self, other: &Binary<'d>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'d> Ord for Binary<'d>
[src]
impl<'d> Ord for Binary<'d>
fn cmp(&self, other: &Binary<'d>) -> Ordering
[src]
fn cmp(&self, other: &Binary<'d>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<'d> Hash for Binary<'d>
[src]
impl<'d> Hash for Binary<'d>
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'d> Debug for Binary<'d>
[src]
impl<'d> Debug for Binary<'d>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'d> Argdata<'d> for Binary<'d>
[src]
impl<'d> Argdata<'d> for Binary<'d>
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
[src]
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
Read the value.
fn serialized_length(&self) -> usize
[src]
fn serialized_length(&self) -> usize
The number of bytes that self.serialize()
will write.
fn serialize(&self, writer: &mut Write, _: Option<&mut FdMapping>) -> Result<()>
[src]
fn serialize(&self, writer: &mut Write, _: Option<&mut FdMapping>) -> Result<()>
Serialize the argdata to the given writer. Read more
fn get_type(&self) -> Result<Type, ReadError>
[src]
fn get_type(&self) -> Result<Type, ReadError>
Read the type of the value.
fn read_null(&self) -> Result<(), NotRead>
[src]
fn read_null(&self) -> Result<(), NotRead>
Check if the value is null.
fn read_binary(&self) -> Result<&'d [u8], NotRead>
[src]
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
fn read_bool(&self) -> Result<bool, NotRead>
[src]
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
[src]
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
fn read_float(&self) -> Result<f64, NotRead>
[src]
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
[src]
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
fn read_map<'a>(&'a self) -> Result<&'a Map<'d>, NotRead> where
'd: 'a,
[src]
fn read_map<'a>(&'a self) -> Result<&'a Map<'d>, NotRead> where
'd: 'a,
Check if the value is a map, and get access to it if it is.
fn read_seq<'a>(&'a self) -> Result<&'a Seq<'d>, NotRead> where
'd: 'a,
[src]
fn read_seq<'a>(&'a self) -> Result<&'a Seq<'d>, NotRead> where
'd: 'a,
Check if the value is a seq, and get access to it if it is.
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
[src]
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
fn read_timestamp(&self) -> Result<Timespec, NotRead>
[src]
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.