[−][src]Struct assembly_data::fdb::common::Latin1Str
A borrowed latin-1 encoded string (like &str)
Implementations
impl Latin1Str[src]
pub unsafe fn from_bytes_unchecked(text: &[u8]) -> &Self[src]
pub fn as_bytes(&self) -> &[u8][src]
Get the bytes of the string
pub fn len(&self) -> usize[src]
Get the bytes of the string
pub fn is_empty(&self) -> bool[src]
Check whether the str is empty
pub fn req_buf_len(&self) -> usize[src]
Calculates the number of 4-byte units that are needed to store this string with at least one null terminator.
pub fn decode(&self) -> Cow<'_, str>[src]
Decode the string
Trait Implementations
impl Borrow<Latin1Str> for Latin1String[src]
impl<'_> Debug for &'_ Latin1Str[src]
impl Eq for Latin1Str[src]
impl<'_> From<&'_ Latin1Str> for Latin1String[src]
pub fn from(src: &Latin1Str) -> Latin1String[src]
impl Ord for Latin1Str[src]
pub fn cmp(&self, other: &Latin1Str) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Latin1Str> for Latin1Str[src]
impl PartialOrd<Latin1Str> for Latin1Str[src]
pub fn partial_cmp(&self, other: &Latin1Str) -> Option<Ordering>[src]
pub fn lt(&self, other: &Latin1Str) -> bool[src]
pub fn le(&self, other: &Latin1Str) -> bool[src]
pub fn gt(&self, other: &Latin1Str) -> bool[src]
pub fn ge(&self, other: &Latin1Str) -> bool[src]
impl StructuralEq for Latin1Str[src]
impl StructuralPartialEq for Latin1Str[src]
impl ToOwned for Latin1Str[src]
type Owned = Latin1String
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> Self::Owned[src]
pub fn clone_into(&self, target: &mut Self::Owned)[src]
Auto Trait Implementations
impl RefUnwindSafe for Latin1Str[src]
impl Send for Latin1Str[src]
impl Sync for Latin1Str[src]
impl Unpin for Latin1Str[src]
impl UnwindSafe for Latin1Str[src]
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Pipe for T where
T: ?Sized,
T: ?Sized,
pub fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_ref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
pub fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
B: 'a + ?Sized,
R: 'a,
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
Self: Borrow<B>,
pub fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
B: 'a + ?Sized,
R: 'a,
Self: BorrowMut<B>,
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
B: 'a + ?Sized,
R: 'a,
Self: BorrowMut<B>,
pub fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
R: 'a,
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
Self: AsRef<U>,
U: 'a + ?Sized,
pub fn pipe_as_mut<'a, U, R>(
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
R: 'a,
Self: AsMut<U>,
U: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
R: 'a,
Self: AsMut<U>,
U: 'a + ?Sized,
pub fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
R: 'a,
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Self: Deref<Target = T>,
T: 'a + ?Sized,
pub fn pipe_deref_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
R: 'a,
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
R: 'a,
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,