pub struct Route { /* private fields */ }Expand description
One entry of a source’s routes.
Implementations§
Source§impl Route
impl Route
Sourcepub fn repositories(&self) -> &[RepositoryPattern]
pub fn repositories(&self) -> &[RepositoryPattern]
The patterns, in the order written. Never empty.
Sourcepub fn to(&self) -> &SourceName
pub fn to(&self) -> &SourceName
The configured source an item this entry matches goes to.
Sourcepub fn matches(&self, repositories: &[Repository]) -> bool
pub fn matches(&self, repositories: &[Repository]) -> bool
Whether every one of repositories matches one of this entry’s patterns — false
for an item naming none.
Trait Implementations§
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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
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,
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.