pub struct BumpVersion {
pub version: u32,
}Expand description
Unique identifier of content.
This is generated by split command and used to distinguish different versions of the same content.
Fields§
§version: u32Implementations§
Source§impl BumpVersion
impl BumpVersion
pub const fn new() -> BumpVersion
pub fn from_bytes(arr: &[u8; 4]) -> BumpVersion
pub fn encode(&self) -> [u8; 4]
pub fn bump(&mut self)
Trait Implementations§
Source§impl Clone for BumpVersion
impl Clone for BumpVersion
Source§fn clone(&self) -> BumpVersion
fn clone(&self) -> BumpVersion
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 moreimpl Copy for BumpVersion
Source§impl Debug for BumpVersion
impl Debug for BumpVersion
Source§impl Default for BumpVersion
impl Default for BumpVersion
Source§fn default() -> BumpVersion
fn default() -> BumpVersion
Returns the “default value” for a type. Read more
Source§impl Display for BumpVersion
impl Display for BumpVersion
impl Eq for BumpVersion
Source§impl Hash for BumpVersion
impl Hash for BumpVersion
Source§impl Ord for BumpVersion
impl Ord for BumpVersion
Source§fn cmp(&self, other: &BumpVersion) -> Ordering
fn cmp(&self, other: &BumpVersion) -> Ordering
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 BumpVersion
impl PartialEq for BumpVersion
Source§impl PartialOrd for BumpVersion
impl PartialOrd for BumpVersion
impl StructuralPartialEq for BumpVersion
Auto Trait Implementations§
impl Freeze for BumpVersion
impl RefUnwindSafe for BumpVersion
impl Send for BumpVersion
impl Sync for BumpVersion
impl Unpin for BumpVersion
impl UnsafeUnpin for BumpVersion
impl UnwindSafe for BumpVersion
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,
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§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.