pub struct CapsuleVersion(pub String);Expand description
A capsule version pin — the R0.7 placeholder for R0.9’s capsule manifest identity.
R0.9 gives capsules a full manifest (build digest, declared interface,
capability grants); R0.7 pins only the version string so a run’s manifest
can already record which capsule build influenced it. Typing it now —
rather than storing a bare string — localizes the R0.9 evolution to one
type instead of every consumer of the manifest map. Transparent over
String: the wire shape is the version string itself.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for CapsuleVersion
impl Clone for CapsuleVersion
Source§impl Debug for CapsuleVersion
impl Debug for CapsuleVersion
Source§impl<'de> Deserialize<'de> for CapsuleVersion
impl<'de> Deserialize<'de> for CapsuleVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CapsuleVersion
impl Display for CapsuleVersion
impl Eq for CapsuleVersion
Source§impl Ord for CapsuleVersion
impl Ord for CapsuleVersion
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 CapsuleVersion
impl PartialEq for CapsuleVersion
Source§impl PartialOrd for CapsuleVersion
impl PartialOrd for CapsuleVersion
Source§impl Serialize for CapsuleVersion
impl Serialize for CapsuleVersion
impl StructuralPartialEq for CapsuleVersion
Auto Trait Implementations§
impl Freeze for CapsuleVersion
impl RefUnwindSafe for CapsuleVersion
impl Send for CapsuleVersion
impl Sync for CapsuleVersion
impl Unpin for CapsuleVersion
impl UnsafeUnpin for CapsuleVersion
impl UnwindSafe for CapsuleVersion
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