pub struct PathMappingSet { /* private fields */ }Implementations§
Source§impl PathMappingSet
impl PathMappingSet
Sourcepub fn new(mappings: Vec<PathMapping>) -> Result<Self, PathMappingError>
pub fn new(mappings: Vec<PathMapping>) -> Result<Self, PathMappingError>
Creates a deterministic longest-prefix mapping set.
§Errors
Returns an error when two mappings declare the same source.
Trait Implementations§
Source§impl Clone for PathMappingSet
impl Clone for PathMappingSet
Source§impl Debug for PathMappingSet
impl Debug for PathMappingSet
impl Eq for PathMappingSet
Source§impl PartialEq for PathMappingSet
impl PartialEq for PathMappingSet
impl StructuralPartialEq for PathMappingSet
Auto Trait Implementations§
impl Freeze for PathMappingSet
impl RefUnwindSafe for PathMappingSet
impl Send for PathMappingSet
impl Sync for PathMappingSet
impl Unpin for PathMappingSet
impl UnsafeUnpin for PathMappingSet
impl UnwindSafe for PathMappingSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.