#[non_exhaustive]pub enum BuildPathError {
NotEnoughElements,
InvalidElement,
}Expand description
Error building a resource path, see ResourceDef::try_build_path().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotEnoughElements
Not enough elements for the dynamic segments of the pattern
InvalidElement
An element does not match the pattern of its dynamic segment
Trait Implementations§
Source§impl Clone for BuildPathError
impl Clone for BuildPathError
Source§fn clone(&self) -> BuildPathError
fn clone(&self) -> BuildPathError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuildPathError
Source§impl Debug for BuildPathError
impl Debug for BuildPathError
impl Eq for BuildPathError
Source§impl PartialEq for BuildPathError
impl PartialEq for BuildPathError
impl StructuralPartialEq for BuildPathError
Auto Trait Implementations§
impl Freeze for BuildPathError
impl RefUnwindSafe for BuildPathError
impl Send for BuildPathError
impl Sync for BuildPathError
impl Unpin for BuildPathError
impl UnsafeUnpin for BuildPathError
impl UnwindSafe for BuildPathError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.