pub struct StringBinding;Expand description
Binding for String values using null-terminated UTF-8 encoding.
Strings are stored as their UTF-8 bytes followed by a null terminator byte.
Implementations§
Source§impl StringBinding
impl StringBinding
Trait Implementations§
Source§impl Clone for StringBinding
impl Clone for StringBinding
Source§fn clone(&self) -> StringBinding
fn clone(&self) -> StringBinding
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 StringBinding
Source§impl Debug for StringBinding
impl Debug for StringBinding
Source§impl Default for StringBinding
impl Default for StringBinding
Source§fn default() -> StringBinding
fn default() -> StringBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<String> for StringBinding
impl EntryBinding<String> for StringBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<String>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<String>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(
&self,
object: &String,
entry: &mut DatabaseEntry,
) -> Result<()>
fn object_to_entry( &self, object: &String, entry: &mut DatabaseEntry, ) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<String> for StringBinding
impl TupleBinding<String> for StringBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<String>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<String>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(
&self,
object: &String,
output: &mut TupleOutput,
) -> Result<()>
fn object_to_tuple( &self, object: &String, 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 StringBinding
impl RefUnwindSafe for StringBinding
impl Send for StringBinding
impl Sync for StringBinding
impl Unpin for StringBinding
impl UnsafeUnpin for StringBinding
impl UnwindSafe for StringBinding
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