Enum uefi::data_types::FromStrWithBufError
source · pub enum FromStrWithBufError {
InvalidChar(usize),
InteriorNul(usize),
BufferTooSmall,
}
Expand description
Error returned by CStr16::from_str_with_buf
.
Variants§
InvalidChar(usize)
An invalid character was encountered before the end of the string
InteriorNul(usize)
A null character was encountered in the string
BufferTooSmall
The buffer is not big enough to hold the entire string and trailing null character
Trait Implementations§
source§impl Clone for FromStrWithBufError
impl Clone for FromStrWithBufError
source§fn clone(&self) -> FromStrWithBufError
fn clone(&self) -> FromStrWithBufError
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 FromStrWithBufError
impl Debug for FromStrWithBufError
source§impl Display for FromStrWithBufError
impl Display for FromStrWithBufError
source§impl Error for FromStrWithBufError
Available on crate feature unstable
only.
impl Error for FromStrWithBufError
Available on crate feature
unstable
only.1.30.0 · 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 for FromStrWithBufError
impl PartialEq for FromStrWithBufError
source§fn eq(&self, other: &FromStrWithBufError) -> bool
fn eq(&self, other: &FromStrWithBufError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FromStrWithBufError
impl Eq for FromStrWithBufError
impl StructuralPartialEq for FromStrWithBufError
Auto Trait Implementations§
impl Freeze for FromStrWithBufError
impl RefUnwindSafe for FromStrWithBufError
impl Send for FromStrWithBufError
impl Sync for FromStrWithBufError
impl Unpin for FromStrWithBufError
impl UnwindSafe for FromStrWithBufError
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