pub struct CaixaVersion(pub String);Expand description
A caixa’s pinned version — a thin typed wrapper over a String that parses
as semver::Version on demand.
Stored as a String at rest so authoring a caixa.lisp stays a single
quoted literal. The typed form is reached through Self::parse.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for CaixaVersion
impl Clone for CaixaVersion
Source§fn clone(&self) -> CaixaVersion
fn clone(&self) -> CaixaVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaixaVersion
impl Debug for CaixaVersion
Source§impl<'de> Deserialize<'de> for CaixaVersion
impl<'de> Deserialize<'de> for CaixaVersion
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 CaixaVersion
impl Display for CaixaVersion
impl Eq for CaixaVersion
Source§impl From<&str> for CaixaVersion
impl From<&str> for CaixaVersion
Source§impl From<String> for CaixaVersion
impl From<String> for CaixaVersion
Source§impl Hash for CaixaVersion
impl Hash for CaixaVersion
Source§impl PartialEq for CaixaVersion
impl PartialEq for CaixaVersion
Source§impl Serialize for CaixaVersion
impl Serialize for CaixaVersion
impl StructuralPartialEq for CaixaVersion
Auto Trait Implementations§
impl Freeze for CaixaVersion
impl RefUnwindSafe for CaixaVersion
impl Send for CaixaVersion
impl Sync for CaixaVersion
impl Unpin for CaixaVersion
impl UnsafeUnpin for CaixaVersion
impl UnwindSafe for CaixaVersion
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.