Enum fmod::FromUtf8UntilNul
source · pub enum FromUtf8UntilNul {
Utf8(Utf8Error),
CStr(FromBytesUntilNulError),
}Expand description
An error indicating that no nul byte was present, or that there was invalid UTF-8.
A slice used to create a Utf8CStr must contain a nul byte somewhere within the slice, and must be valid UTF-8.
This error is created by the Utf8CStr::from_utf8_until_nul method.
Variants§
Utf8(Utf8Error)
The slice was not valid UTF-8.
CStr(FromBytesUntilNulError)
The slice was not a valid C string.
Trait Implementations§
source§impl Clone for FromUtf8UntilNul
impl Clone for FromUtf8UntilNul
source§fn clone(&self) -> FromUtf8UntilNul
fn clone(&self) -> FromUtf8UntilNul
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FromUtf8UntilNul
impl Debug for FromUtf8UntilNul
source§impl Display for FromUtf8UntilNul
impl Display for FromUtf8UntilNul
source§impl From<FromBytesUntilNulError> for FromUtf8UntilNul
impl From<FromBytesUntilNulError> for FromUtf8UntilNul
source§fn from(value: FromBytesUntilNulError) -> FromUtf8UntilNul
fn from(value: FromBytesUntilNulError) -> FromUtf8UntilNul
Converts to this type from the input type.
source§impl From<Utf8Error> for FromUtf8UntilNul
impl From<Utf8Error> for FromUtf8UntilNul
source§fn from(value: Utf8Error) -> FromUtf8UntilNul
fn from(value: Utf8Error) -> FromUtf8UntilNul
Converts to this type from the input type.
source§impl PartialEq for FromUtf8UntilNul
impl PartialEq for FromUtf8UntilNul
source§fn eq(&self, other: &FromUtf8UntilNul) -> bool
fn eq(&self, other: &FromUtf8UntilNul) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for FromUtf8UntilNul
impl StructuralPartialEq for FromUtf8UntilNul
Auto Trait Implementations§
impl Freeze for FromUtf8UntilNul
impl RefUnwindSafe for FromUtf8UntilNul
impl Send for FromUtf8UntilNul
impl Sync for FromUtf8UntilNul
impl Unpin for FromUtf8UntilNul
impl UnwindSafe for FromUtf8UntilNul
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more