pub struct Bool { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'d> Argdata<'d> for Bool
impl<'d> Argdata<'d> for Bool
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
The number of bytes that
self.serialize()
will write.sourcefn serialize(
&self,
writer: &mut dyn Write,
_: Option<&mut dyn FdMapping>
) -> Result<()>
fn serialize(
&self,
writer: &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 Bool
impl Ord for Bool
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<Bool> for Bool
impl PartialOrd<Bool> for Bool
sourcefn partial_cmp(&self, other: &Bool) -> Option<Ordering>
fn partial_cmp(&self, other: &Bool) -> 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 Bool
impl Eq for Bool
impl StructuralEq for Bool
impl StructuralPartialEq for Bool
Auto Trait Implementations
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
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