pub struct Bytes<'a, const __: u128> { /* private fields */ }
Expand description

Slice iterator that stores the original length of the slice.

Implementations

If each yielded value is adjacent in memory.

Create new byte object.

Get a ptr to the current start of the iterator.

Get a slice to the current start of the iterator.

Get the total number of elements in the underlying slice.

Get the current index of the iterator in the slice.

Set the current index of the iterator in the slice.

Safety

Safe if index <= self.length().

Get the current number of values returned by the iterator.

Get if the buffer underlying the iterator is empty. Same as is_consumed.

Read a value of a difference type from the iterator. This advances the internal state of the iterator.

Safety

Safe as long as the number of the buffer is contains as least as many bytes as the size of V.

Try to read a value of a different type from the iterator. This advances the internal state of the iterator.

Check if the next element is a given value.

Check if the next element is a given value without case sensitivity.

Get iterator over integer digits.

Get iterator over fraction digits.

Get iterator over exponent digits.

Get iterator over special floating point values.

Advance the byte by N elements.

Safety

As long as the iterator is at least N elements, this is safe.

Advance the byte by 1 element.

Safety

Safe as long as the iterator is not empty.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.