pub struct FieldValue<'a> { /* private fields */ }Expand description
Field value.
Implementations§
Source§impl<'a> FieldValue<'a>
impl<'a> FieldValue<'a>
Sourcepub fn from_slice(slice: &'a [u8]) -> Self
pub fn from_slice(slice: &'a [u8]) -> Self
Constructs field value from bytes.
Sourcepub fn try_from_slice(
slice: &'a [u8],
) -> Result<Self, ParseError<&'a [u8], ContextError>>
pub fn try_from_slice( slice: &'a [u8], ) -> Result<Self, ParseError<&'a [u8], ContextError>>
Parses a field value from bytes.
Trait Implementations§
Source§impl<'a> Clone for FieldValue<'a>
impl<'a> Clone for FieldValue<'a>
Source§fn clone(&self) -> FieldValue<'a>
fn clone(&self) -> FieldValue<'a>
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 moreSource§impl<'a> Debug for FieldValue<'a>
impl<'a> Debug for FieldValue<'a>
impl<'a> Eq for FieldValue<'a>
Source§impl<'a> PartialEq for FieldValue<'a>
impl<'a> PartialEq for FieldValue<'a>
Source§fn eq(&self, other: &FieldValue<'a>) -> bool
fn eq(&self, other: &FieldValue<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for FieldValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldValue<'a>
impl<'a> RefUnwindSafe for FieldValue<'a>
impl<'a> Send for FieldValue<'a>
impl<'a> Sync for FieldValue<'a>
impl<'a> Unpin for FieldValue<'a>
impl<'a> UnsafeUnpin for FieldValue<'a>
impl<'a> UnwindSafe for FieldValue<'a>
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