#[repr(transparent)]pub struct Bstr { /* fields omitted */ }
Thin wrapper for a [u8]
See also the crate documentation.
Transmutes the argument into &Bstr
Transmutes the argument into &mut Bstr
Shortcut for Bstr::from_bytes(s.as_bytes())
Shortcut for Bstr::from_bytes(s.as_bytes())
Shortcut for Bstr::from_os_str(s.as_os_str())
Transmutes self
into &[u8]
Transmutes self
into &mut [u8]
Shortcut for str::from_utf8(self.as_bytes())
Shortcut for OsStr::from_bytes(self.as_bytes())
Shortcut for Path::new(self.as_os_str())
Shortcut for self.as_bytes().as_ptr()
Shortcut for self.as_mut_bytes().as_mut_ptr()
Shortcut for self.as_bytes().len()
Shortcut for self.len() == 0
Shortcut for self.as_path().display()
Allocates a new Ustring
with the contents of this object
Immutably borrows from an owned value. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Converts self
into Cow<'a, Ustr>
This method returns an [Ordering
] between self
and other
. Read more
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (clamp
)
Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
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
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
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
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more