pub struct BoolBinding;Expand description
Binding for bool values.
Encodes as a single byte: 1 for true, 0 for false.
Implementations§
Source§impl BoolBinding
impl BoolBinding
Trait Implementations§
Source§impl Clone for BoolBinding
impl Clone for BoolBinding
Source§fn clone(&self) -> BoolBinding
fn clone(&self) -> BoolBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoolBinding
Source§impl Debug for BoolBinding
impl Debug for BoolBinding
Source§impl Default for BoolBinding
impl Default for BoolBinding
Source§fn default() -> BoolBinding
fn default() -> BoolBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<bool> for BoolBinding
impl EntryBinding<bool> for BoolBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<bool>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<bool>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(
&self,
object: &bool,
entry: &mut DatabaseEntry,
) -> Result<()>
fn object_to_entry( &self, object: &bool, entry: &mut DatabaseEntry, ) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<bool> for BoolBinding
impl TupleBinding<bool> for BoolBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<bool>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<bool>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(&self, object: &bool, output: &mut TupleOutput) -> Result<()>
fn object_to_tuple(&self, object: &bool, output: &mut TupleOutput) -> Result<()>
Converts an object to tuple output. Read more
Source§fn entry_to_input(entry: &DatabaseEntry) -> TupleInput
fn entry_to_input(entry: &DatabaseEntry) -> TupleInput
Creates a
TupleInput from a DatabaseEntry.Auto Trait Implementations§
impl Freeze for BoolBinding
impl RefUnwindSafe for BoolBinding
impl Send for BoolBinding
impl Sync for BoolBinding
impl Unpin for BoolBinding
impl UnsafeUnpin for BoolBinding
impl UnwindSafe for BoolBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more