pub enum GptPartitionNameFromStrError {
Length,
InvalidChar,
}Expand description
Error type for GptPartitionName::from_str.
Variants§
Length
Input string is too long.
InvalidChar
Input string contains a character that cannot be represented in UCS-2.
Trait Implementations§
Source§impl Clone for GptPartitionNameFromStrError
impl Clone for GptPartitionNameFromStrError
Source§fn clone(&self) -> GptPartitionNameFromStrError
fn clone(&self) -> GptPartitionNameFromStrError
Returns a duplicate 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 GptPartitionNameFromStrError
impl Debug for GptPartitionNameFromStrError
Source§impl Error for GptPartitionNameFromStrError
impl Error for GptPartitionNameFromStrError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for GptPartitionNameFromStrError
impl From<Error> for GptPartitionNameFromStrError
Source§impl Hash for GptPartitionNameFromStrError
impl Hash for GptPartitionNameFromStrError
Source§impl Ord for GptPartitionNameFromStrError
impl Ord for GptPartitionNameFromStrError
Source§fn cmp(&self, other: &GptPartitionNameFromStrError) -> Ordering
fn cmp(&self, other: &GptPartitionNameFromStrError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GptPartitionNameFromStrError
impl PartialEq for GptPartitionNameFromStrError
Source§fn eq(&self, other: &GptPartitionNameFromStrError) -> bool
fn eq(&self, other: &GptPartitionNameFromStrError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GptPartitionNameFromStrError
impl PartialOrd for GptPartitionNameFromStrError
impl Copy for GptPartitionNameFromStrError
impl Eq for GptPartitionNameFromStrError
impl StructuralPartialEq for GptPartitionNameFromStrError
Auto Trait Implementations§
impl Freeze for GptPartitionNameFromStrError
impl RefUnwindSafe for GptPartitionNameFromStrError
impl Send for GptPartitionNameFromStrError
impl Sync for GptPartitionNameFromStrError
impl Unpin for GptPartitionNameFromStrError
impl UnwindSafe for GptPartitionNameFromStrError
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