pub struct Null;
Trait Implementations
sourceimpl<'d> Argdata<'d> for Null
impl<'d> Argdata<'d> for Null
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
The number of bytes that
self.serialize()
will write.sourcefn serialize(
&self,
_: &mut dyn Write,
_: Option<&mut dyn FdMapping>
) -> Result<()>
fn serialize(
&self,
_: &mut dyn Write,
_: Option<&mut dyn FdMapping>
) -> Result<()>
Serialize the argdata to the given writer. Read more
sourcefn read_binary(&self) -> Result<&'d [u8], NotRead>
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
sourcefn read_bool(&self) -> Result<bool, NotRead>
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
sourcefn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
fn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
sourcefn read_float(&self) -> Result<f64, NotRead>
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
sourcefn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
sourcefn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a map, and get an iterator over it if it is.
sourcefn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a seq, and get an iterator over it if it is.
sourcefn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
sourcefn read_timestamp(&self) -> Result<Timespec, NotRead>
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.
sourceimpl Ord for Null
impl Ord for Null
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Null> for Null
impl PartialOrd<Null> for Null
sourcefn partial_cmp(&self, other: &Null) -> Option<Ordering>
fn partial_cmp(&self, other: &Null) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Null
impl Eq for Null
impl StructuralEq for Null
impl StructuralPartialEq for Null
Auto Trait Implementations
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
Blanket Implementations
sourceimpl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
impl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more