pub struct WithoutLength<T>(pub T);
Expand description
A type for variable-length values within TLV record where the length is encoded as part of the record.
Used to prevent encoding the length twice.
(C-not exported) as manual TLV building is not currently supported in bindings
Converts to this type from the input type.
Converts to this type from the input type.
Reads a
Self
in from the given
Read
.
Reads a
Self
in from the given
Read
.
Reads a
Self
in from the given
Read
.
Writes
self
out to the given
Writer
.
Writes self
out to a Vec<u8>
.
Gets the length of this object after it has been serialized. This can be overridden to
optimize cases where we prepend an object with its length.
Writes
self
out to the given
Writer
.
Writes self
out to a Vec<u8>
.
Gets the length of this object after it has been serialized. This can be overridden to
optimize cases where we prepend an object with its length.
Writes
self
out to the given
Writer
.
Writes self
out to a Vec<u8>
.
Gets the length of this object after it has been serialized. This can be overridden to
optimize cases where we prepend an object with its length.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Reads a
Self
in from the given
Read
.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.