pub struct LockedSource { /* private fields */ }Expand description
A complete source key whose equality never treats missing precision as a wildcard.
Repository IRIs retain their validated spelling. This value does not assert correspondence to a supplied checkout or authenticate repository ownership.
Implementations§
Source§impl LockedSource
impl LockedSource
Sourcepub const fn kind(&self) -> LockedSourceKind
pub const fn kind(&self) -> LockedSourceKind
The exact source family.
Sourcepub fn repository(&self) -> &str
pub fn repository(&self) -> &str
The validated repository IRI, without a Git selector or revision fragment.
Sourcepub const fn reference(&self) -> Option<&LockedGitReference>
pub const fn reference(&self) -> Option<&LockedGitReference>
The requested Git reference; absent for other source families.
Trait Implementations§
Source§impl Debug for LockedSource
impl Debug for LockedSource
impl Eq for LockedSource
Source§impl Hash for LockedSource
impl Hash for LockedSource
Source§impl Ord for LockedSource
impl Ord for LockedSource
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LockedSource
impl PartialEq for LockedSource
Source§impl PartialOrd for LockedSource
impl PartialOrd for LockedSource
impl StructuralPartialEq for LockedSource
Auto Trait Implementations§
impl Forget for LockedSource
impl Freeze for LockedSource
impl Move for LockedSource
impl RefUnwindSafe for LockedSource
impl Send for LockedSource
impl Sync for LockedSource
impl Unpin for LockedSource
impl UnsafeUnpin for LockedSource
impl UnwindSafe for LockedSource
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
Whether this borrowed key equals the stored key.
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.impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more