pub struct Field(/* private fields */);Implementations§
Source§impl Field
impl Field
pub fn new<'a, T: IntoBytes<FieldValue> + TryFrom<&'a FieldValue, Error = ConversionError>>( tag: Tag, value: T, ) -> Self
pub fn from_bytes(tag: Tag, value: Arc<[u8]>) -> Self
pub fn tag(&self) -> Tag
pub fn value(&self) -> &FieldValue
pub fn as_value<'a, T>(&'a self) -> Result<T, ConversionError>
Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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