Struct argdata::values::Map [−][src]
pub struct Map<'d, T: 'd> { /* fields omitted */ }
Methods
impl<'d, T> Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'d>,
[src]
impl<'d, T> Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'d>,
Trait Implementations
impl<'d, T: Clone + 'd> Clone for Map<'d, T>
[src]
impl<'d, T: Clone + 'd> Clone for Map<'d, T>
fn clone(&self) -> Map<'d, T>
[src]
fn clone(&self) -> Map<'d, T>
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, T: Copy + 'd> Copy for Map<'d, T>
[src]
impl<'d, T: Copy + 'd> Copy for Map<'d, T>
impl<'d, T: Debug + 'd> Debug for Map<'d, T>
[src]
impl<'d, T: Debug + 'd> Debug for Map<'d, T>
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, T> Argdata<'d> for Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'d>,
[src]
impl<'d, T> Argdata<'d> for Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'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,
fd_map: Option<&mut FdMapping>
) -> Result<()>
[src]
fn serialize(
&self,
writer: &mut Write,
fd_map: 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.
impl<'d, T> Map<'d> for Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'d>,
[src]
impl<'d, T> Map<'d> for Map<'d, T> where
T: MapContainer,
<T as MapContainer>::Key: Argdata<'d>,
<T as MapContainer>::Value: Argdata<'d>,
fn iter_map_next<'a>(
&'a self,
cookie: &mut usize
) -> Option<Result<(ArgdataRef<'a, 'd>, ArgdataRef<'a, 'd>), ReadError>> where
'd: 'a,
[src]
fn iter_map_next<'a>(
&'a self,
cookie: &mut usize
) -> Option<Result<(ArgdataRef<'a, 'd>, ArgdataRef<'a, 'd>), ReadError>> where
'd: 'a,
Iterate to the next key-value pair, returning None if the end is reached. Read more