pub struct TupleField {
pub value: Vec<u8>,
}Expand description
Tuple Field
Fields§
§value: Vec<u8>Implementations§
Source§impl TupleField
impl TupleField
pub const MAX_VALUE_SIZE: usize = 4096
Source§impl TupleField
impl TupleField
pub fn new() -> Self
pub fn from_utf8(path: &str) -> Self
Sourcepub fn set<P: Encode>(&mut self, p: P) -> Result<(), EncodeError>
pub fn set<P: Encode>(&mut self, p: P) -> Result<(), EncodeError>
Allow an encodable structure (ie. implements the Encode trait) to be set as the value.
Sourcepub fn get<P: Decode>(&self) -> Result<P, DecodeError>
pub fn get<P: Decode>(&self) -> Result<P, DecodeError>
Try to decode the value as the specified Decodable structure (ie. implements the Decode trait).
Trait Implementations§
Source§impl Clone for TupleField
impl Clone for TupleField
Source§fn clone(&self) -> TupleField
fn clone(&self) -> TupleField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TupleField
impl Debug for TupleField
Source§impl Decode for TupleField
impl Decode for TupleField
Source§impl Default for TupleField
impl Default for TupleField
Source§fn default() -> TupleField
fn default() -> TupleField
Returns the “default value” for a type. Read more
Source§impl Encode for TupleField
impl Encode for TupleField
Source§impl Hash for TupleField
impl Hash for TupleField
Source§impl PartialEq for TupleField
impl PartialEq for TupleField
impl Eq for TupleField
impl StructuralPartialEq for TupleField
Auto Trait Implementations§
impl Freeze for TupleField
impl RefUnwindSafe for TupleField
impl Send for TupleField
impl Sync for TupleField
impl Unpin for TupleField
impl UnsafeUnpin for TupleField
impl UnwindSafe for TupleField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.