[−][src]Struct ketos::bytes::Bytes
Shared byte string container
Methods
impl Bytes
[src]
pub fn new(v: Vec<u8>) -> Bytes
[src]
Creates an empty byte string.
pub fn is_empty(&self) -> bool
[src]
Returns whether the byte string is empty.
pub fn len(&self) -> usize
[src]
Returns the number of bytes contained in the byte string.
pub fn slice<R: RangeArgument<usize>>(&self, range: R) -> Bytes
[src]
Returns a subslice of the byte string.
pub fn into_bytes(self) -> Vec<u8>
[src]
Consumes the container and returns a Vec<u8>
.
pub fn push(&mut self, b: u8)
[src]
Inserts a byte at the end of the byte string.
Trait Implementations
impl AsRef<[u8]> for Bytes
[src]
impl Clone for Bytes
[src]
impl Debug for Bytes
[src]
impl Deref for Bytes
[src]
impl DerefMut for Bytes
[src]
impl Eq for Bytes
[src]
impl<'a> Extend<&'a u8> for Bytes
[src]
fn extend<I>(&mut self, iterable: I) where
I: IntoIterator<Item = &'a u8>,
[src]
I: IntoIterator<Item = &'a u8>,
impl Extend<u8> for Bytes
[src]
fn extend<I>(&mut self, iterable: I) where
I: IntoIterator<Item = u8>,
[src]
I: IntoIterator<Item = u8>,
impl<'a> From<&'a [u8]> for Bytes
[src]
impl<'a> From<&'a str> for Bytes
[src]
impl From<Bytes> for Value
[src]
impl From<String> for Bytes
[src]
impl From<Vec<u8>> for Bytes
[src]
impl FromValue for Bytes
[src]
impl<'a> FromValueRef<'a> for &'a Bytes
[src]
impl<'a> IntoIterator for &'a Bytes
[src]
type Item = &'a u8
The type of the elements being iterated over.
type IntoIter = Iter<'a, u8>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Iter<'a, u8>
[src]
impl Ord for Bytes
[src]
fn cmp(&self, rhs: &Bytes) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a> PartialEq<&'a [u8; 0]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 1]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 10]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 10]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 11]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 11]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 12]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 12]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 13]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 13]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 14]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 14]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 15]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 15]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 16]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 16]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 17]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 17]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 18]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 18]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 19]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 19]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 2]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 20]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 20]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 21]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 21]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 22]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 22]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 23]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 23]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 24]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 24]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 25]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 25]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 26]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 26]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 27]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 27]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 28]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 28]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 29]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 29]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 3]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 30]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 30]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 31]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 31]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 32]> for Bytes
[src]
fn eq(&self, rhs: &&'a [u8; 32]) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<&'a [u8; 4]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 5]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 6]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 7]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 8]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8; 9]> for Bytes
[src]
impl<'a> PartialEq<&'a [u8]> for Bytes
[src]
impl PartialEq<[u8; 0]> for Bytes
[src]
impl PartialEq<[u8; 1]> for Bytes
[src]
impl PartialEq<[u8; 10]> for Bytes
[src]
impl PartialEq<[u8; 11]> for Bytes
[src]
impl PartialEq<[u8; 12]> for Bytes
[src]
impl PartialEq<[u8; 13]> for Bytes
[src]
impl PartialEq<[u8; 14]> for Bytes
[src]
impl PartialEq<[u8; 15]> for Bytes
[src]
impl PartialEq<[u8; 16]> for Bytes
[src]
impl PartialEq<[u8; 17]> for Bytes
[src]
impl PartialEq<[u8; 18]> for Bytes
[src]
impl PartialEq<[u8; 19]> for Bytes
[src]
impl PartialEq<[u8; 2]> for Bytes
[src]
impl PartialEq<[u8; 20]> for Bytes
[src]
impl PartialEq<[u8; 21]> for Bytes
[src]
impl PartialEq<[u8; 22]> for Bytes
[src]
impl PartialEq<[u8; 23]> for Bytes
[src]
impl PartialEq<[u8; 24]> for Bytes
[src]
impl PartialEq<[u8; 25]> for Bytes
[src]
impl PartialEq<[u8; 26]> for Bytes
[src]
impl PartialEq<[u8; 27]> for Bytes
[src]
impl PartialEq<[u8; 28]> for Bytes
[src]
impl PartialEq<[u8; 29]> for Bytes
[src]
impl PartialEq<[u8; 3]> for Bytes
[src]
impl PartialEq<[u8; 30]> for Bytes
[src]
impl PartialEq<[u8; 31]> for Bytes
[src]
impl PartialEq<[u8; 32]> for Bytes
[src]
impl PartialEq<[u8; 4]> for Bytes
[src]
impl PartialEq<[u8; 5]> for Bytes
[src]
impl PartialEq<[u8; 6]> for Bytes
[src]
impl PartialEq<[u8; 7]> for Bytes
[src]
impl PartialEq<[u8; 8]> for Bytes
[src]
impl PartialEq<[u8; 9]> for Bytes
[src]
impl<'a> PartialEq<[u8]> for Bytes
[src]
impl<'a> PartialEq<Bytes> for Bytes
[src]
impl<'a> PartialEq<Vec<u8>> for Bytes
[src]
impl PartialOrd<Bytes> for Bytes
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Bytes
impl !Send for Bytes
impl !Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,