Struct bytes::SmallByteStr [] [src]

pub struct SmallByteStr { /* fields omitted */ }

Methods

impl SmallByteStr
[src]

Trait Implementations

impl Clone for SmallByteStr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SmallByteStr
[src]

impl ByteStr for SmallByteStr
[src]

Returns a read-only Buf for accessing the byte contents of the ByteStr. Read more

Returns a new Bytes value representing the concatenation of self with the given Bytes. Read more

Returns the number of bytes in the ByteStr

Returns a new ByteStr value containing the byte range between begin (inclusive) and end (exclusive) Read more

Returns true if the length of the ByteStr is 0

Returns a new ByteStr value containing the byte range starting from begin (inclusive) to the end of the byte str. Read more

Returns a new ByteStr value containing the byte range from the start up to end (exclusive). Read more

Divides the value into two Bytes at the given index. Read more

impl ToBytes for SmallByteStr
[src]

Consumes the value and returns a Bytes instance containing identical bytes Read more

impl Index<usize> for SmallByteStr
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<B: ByteStr> PartialEq<B> for SmallByteStr
[src]

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

This method tests for !=.