Enum multiboot2::StringError
source · pub enum StringError {
MissingNul(FromBytesUntilNulError),
Utf8(Utf8Error),
}
Expand description
Error type describing failures when parsing the string from a tag.
Variants§
MissingNul(FromBytesUntilNulError)
There is no terminating NUL character, although the specification requires one.
Utf8(Utf8Error)
The sequence until the first NUL character is not valid UTF-8.
Trait Implementations§
source§impl Clone for StringError
impl Clone for StringError
source§fn clone(&self) -> StringError
fn clone(&self) -> StringError
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 StringError
impl Debug for StringError
source§impl Display for StringError
impl Display for StringError
source§impl Error for StringError
impl Error for StringError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<StringError> for StringError
impl PartialEq<StringError> for StringError
source§fn eq(&self, other: &StringError) -> bool
fn eq(&self, other: &StringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringError
impl StructuralEq for StringError
impl StructuralPartialEq for StringError
Auto Trait Implementations§
impl RefUnwindSafe for StringError
impl Send for StringError
impl Sync for StringError
impl Unpin for StringError
impl UnwindSafe for StringError
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