pub struct DeclaredRelease {
pub release: ReleaseTriplet,
pub declared: String,
}Expand description
A supported wire formatVersion: its normalized release and the spelling the document used.
A reader keyed by major (the classic model) keeps the release as well when a rule depends on
the minor version, such as a v3 Specs distribution needing 3.1.0 or later.
Fields§
§release: ReleaseTripletThe exact release after normalization: integer 3 is 3.0.0.
declared: StringThe value as the document wrote it: 3 or 3.0.0.
Implementations§
Source§impl DeclaredRelease
impl DeclaredRelease
Sourcepub fn from_release(release: ReleaseTriplet) -> Self
pub fn from_release(release: ReleaseTriplet) -> Self
A release known without its written spelling, for example from a root probe.
Trait Implementations§
Source§impl Clone for DeclaredRelease
impl Clone for DeclaredRelease
Source§impl Debug for DeclaredRelease
impl Debug for DeclaredRelease
impl Eq for DeclaredRelease
Source§impl PartialEq for DeclaredRelease
impl PartialEq for DeclaredRelease
impl StructuralPartialEq for DeclaredRelease
Auto Trait Implementations§
impl Freeze for DeclaredRelease
impl RefUnwindSafe for DeclaredRelease
impl Send for DeclaredRelease
impl Sync for DeclaredRelease
impl Unpin for DeclaredRelease
impl UnsafeUnpin for DeclaredRelease
impl UnwindSafe for DeclaredRelease
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§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.