pub enum LocalVersion {
Segments(Vec<LocalSegment>),
Max,
}Expand description
Either a sequence of local segments or [LocalVersion::Sentinel], an internal-only value that
compares greater than all other local versions.
Variants§
Segments(Vec<LocalSegment>)
A sequence of local segments.
Max
An internal-only value that compares greater to all other local versions.
Implementations§
Source§impl LocalVersion
impl LocalVersion
Sourcepub fn as_slice(&self) -> LocalVersionSlice<'_>
pub fn as_slice(&self) -> LocalVersionSlice<'_>
Convert the local version segments into a slice.
Trait Implementations§
Source§impl Clone for LocalVersion
impl Clone for LocalVersion
Source§fn clone(&self) -> LocalVersion
fn clone(&self) -> LocalVersion
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 LocalVersion
impl Debug for LocalVersion
Source§impl Hash for LocalVersion
impl Hash for LocalVersion
Source§impl PartialEq for LocalVersion
impl PartialEq for LocalVersion
Source§fn eq(&self, other: &LocalVersion) -> bool
fn eq(&self, other: &LocalVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LocalVersion
impl StructuralPartialEq for LocalVersion
Auto Trait Implementations§
impl Freeze for LocalVersion
impl RefUnwindSafe for LocalVersion
impl Send for LocalVersion
impl Sync for LocalVersion
impl Unpin for LocalVersion
impl UnsafeUnpin for LocalVersion
impl UnwindSafe for LocalVersion
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