pub struct Partial {
pub major: XRange,
pub minor: XRange,
pub patch: XRange,
pub pre: Vec<String>,
pub build: Vec<String>,
}
Expand description
A partial version.
Fields§
§major: XRange
§minor: XRange
§patch: XRange
§pre: Vec<String>
§build: Vec<String>
Implementations§
source§impl Partial
impl Partial
pub fn as_tilde_version_range(&self) -> VersionRange
pub fn as_caret_version_range(&self) -> VersionRange
pub fn as_lower_bound(&self) -> RangeBound
pub fn as_upper_bound(&self) -> RangeBound
pub fn as_equal_range(&self) -> VersionRange
pub fn as_greater_than(&self, start_kind: VersionBoundKind) -> VersionRange
pub fn as_less_than(&self, end_kind: VersionBoundKind) -> VersionRange
pub fn as_greater_range(&self, start_kind: VersionBoundKind) -> VersionRange
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Partial
impl RefUnwindSafe for Partial
impl Send for Partial
impl Sync for Partial
impl Unpin for Partial
impl UnwindSafe for Partial
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)