Enum re_build_info::crate_version::Meta
source · pub enum Meta {
Rc(u8),
Alpha(u8),
DevAlpha {
alpha: u8,
commit: Option<&'static [u8]>,
},
}
Variants§
Rc(u8)
Alpha(u8)
DevAlpha
0.19.1-alpha.2+dev
or 0.19.1-alpha.2+aab0b4e
Fields
§
commit: Option<&'static [u8]>
The commit hash, if known
None
corresponds to +dev
.
In order to support compile-time parsing of versions strings
this needs to be &'static
and [u8]
instead of String
.
But in practice this is guaranteed to be valid UTF-8.
The commit hash is NOT sent over the wire,
so 0.19.1-alpha.2+aab0b4e
will end up as 0.19.1-alpha.2+dev
on the other end.
Implementations§
Trait Implementations§
source§impl Deserialize<'static> for Meta
impl Deserialize<'static> for Meta
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Meta
impl PartialEq for Meta
impl Copy for Meta
impl Eq for Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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