Struct std::path::StripPrefixError
1.7.0 · source · [−]pub struct StripPrefixError(_);Expand description
An error returned from Path::strip_prefix if the prefix was not found.
This struct is created by the strip_prefix method on Path.
See its documentation for more.
Trait Implementations
impl Clone for StripPrefixError
source
impl Clone for StripPrefixError
sourcefn clone(&self) -> StripPrefixError
source
fn clone(&self) -> StripPrefixError
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for StripPrefixError
source
impl Debug for StripPrefixError
sourceimpl Display for StripPrefixError
source
impl Display for StripPrefixError
sourceimpl Error for StripPrefixError
source
impl Error for StripPrefixError
sourcefn description(&self) -> &str
source
fn description(&self) -> &str
source👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
impl PartialEq<StripPrefixError> for StripPrefixError
source
impl PartialEq<StripPrefixError> for StripPrefixError
sourcefn eq(&self, other: &StripPrefixError) -> bool
source
fn eq(&self, other: &StripPrefixError) -> bool
sourceThis method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &StripPrefixError) -> bool
source
fn ne(&self, other: &StripPrefixError) -> bool
sourceThis method tests for !=.
impl Eq for StripPrefixError
sourceimpl StructuralEq for StripPrefixError
sourceimpl StructuralPartialEq for StripPrefixError
sourceAuto Trait Implementations
impl RefUnwindSafe for StripPrefixError
impl Send for StripPrefixError
impl Sync for StripPrefixError
impl Unpin for StripPrefixError
impl UnwindSafe for StripPrefixError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more