[][src]Struct assembly_data::fdb::common::Latin1Str

#[repr(transparent)]pub struct Latin1Str { /* fields omitted */ }

A borrowed latin-1 encoded string (like &str)

Implementations

impl Latin1Str[src]

pub unsafe fn from_bytes_unchecked(text: &[u8]) -> &Self[src]

Turns some bytes into a Latin1Str slice

Safety

The byte slice may not contain any null bytes

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]

impl Ord for Latin1Str[src]

impl PartialEq<Latin1Str> for Latin1Str[src]

impl PartialOrd<Latin1Str> for Latin1Str[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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Pipe for T where
    T: ?Sized