Struct bytes::SeqByteStr [] [src]

pub struct SeqByteStr { /* fields omitted */ }

Methods

impl SeqByteStr
[src]

Create a new SeqByteStr from a byte slice.

The contents of the byte slice will be copied.

Creates a new SeqByteStr from a MemRef, an offset, and a length.

This function is unsafe as there are no guarantees that the given arguments are valid.

Trait Implementations

impl ByteStr for SeqByteStr
[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 SeqByteStr
[src]

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

impl Index<usize> for SeqByteStr
[src]

The returned type after indexing

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

impl Clone for SeqByteStr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.