[−][src]Struct simple_tlv::TaggedValue
SIMPLE-TLV data object.
Implementations
impl<V> TaggedValue<V>
[src]
impl<'a> TaggedValue<Slice<'a>>
[src]
pub fn from(tag: Tag, slice: &'a [u8]) -> Result<Self>
[src]
Create a new tagged slice, checking lengths.
pub fn as_bytes(&self) -> &'a [u8]
[src]
Borrow the inner byte slice.
pub fn length(&self) -> Length
[src]
Get the length of the inner byte slice.
pub fn is_empty(&self) -> bool
[src]
Is the inner byte slice empty?
pub fn decode_nested<F, T>(&self, f: F) -> Result<T> where
F: FnOnce(&mut Decoder<'a>) -> Result<T>,
[src]
F: FnOnce(&mut Decoder<'a>) -> Result<T>,
Trait Implementations
impl<V: Clone> Clone for TaggedValue<V>
[src]
fn clone(&self) -> TaggedValue<V>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: Copy> Copy for TaggedValue<V>
[src]
impl<V: Debug> Debug for TaggedValue<V>
[src]
impl<'a, E> Encodable for TaggedValue<&'a E> where
E: Encodable,
[src]
E: Encodable,
fn encoded_length(&self) -> Result<Length>
[src]
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>
[src]
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
[src]
impl<V: Eq> Eq for TaggedValue<V>
[src]
impl<V: PartialEq> PartialEq<TaggedValue<V>> for TaggedValue<V>
[src]
fn eq(&self, other: &TaggedValue<V>) -> bool
[src]
fn ne(&self, other: &TaggedValue<V>) -> bool
[src]
impl<V> StructuralEq for TaggedValue<V>
[src]
impl<V> StructuralPartialEq for TaggedValue<V>
[src]
Auto Trait Implementations
impl<V> Send for TaggedValue<V> where
V: Send,
[src]
V: Send,
impl<V> Sync for TaggedValue<V> where
V: Sync,
[src]
V: Sync,
impl<V> Unpin for TaggedValue<V> where
V: Unpin,
[src]
V: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,