pub struct Lat1StrF<const N: usize> { /* private fields */ }
Expand description

Latin-1 (aka. ISO 8859-1) of fixed size

Implementations

Methods from Deref<Target = Lat1Str>

Checks whether the slice only contains ASCII characters.

Returns the number of characters in the string.

Returns the string as slice of bytes.

Returns the string in UTF-8 encoding, only if the string is pure ASCII. Otherwise, a Lat1Error::NonAscii is returned.

Returns the string in UTF-8 encoding, only if the string is pure ASCII.

Panics

This function panics if the string contains non-ASCII chars.

Returns the string in UTF-8 encoding.

Safety

If the string contains non-ASCII characters, the returned string will be invalid UTF-8.

Returns the string converted to UTF-8.

Cow::Borrowed is returned if the string is pure ASCII, otherwise a conversion to UTF-8 is performed and Cow::Owned is returned.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.