pub struct TlsByteVecU16 { /* private fields */ }

Implementations

Create a new TlsVec from a Rust Vec.

Create a new TlsVec from a slice.

Get the length of the vector.

Get a slice to the raw vector.

Check if the vector is empty.

Get the underlying vector and consume this.

Add an element to this.

Remove the last element.

Remove the element at index.

Returns a reference to an element or subslice depending on the type of index. XXX: implement SliceIndex instead

Returns an iterator over the slice.

Retains only the elements specified by the predicate.

Get the number of bytes used for the length encoding.

Trait Implementations

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This is supported on crate feature std only.

This function deserializes the bytes from the provided a std::io::Read and returns the populated struct. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

This is supported on crate feature std only.

Serialize self and write it to the writer. The function returns the number of bytes written to writer. Read more

This is supported on crate feature std only.

Serialize self and return it as a byte vector.

This is supported on crate feature std only.

Serialize self and write it to the writer. The function returns the number of bytes written to writer. Read more

This is supported on crate feature std only.

Serialize self and return it as a byte vector.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.