Struct lance_table::format::WriterVersion
source · pub struct WriterVersion {
pub library: String,
pub version: String,
}Fields§
§library: String§version: StringImplementations§
source§impl WriterVersion
impl WriterVersion
sourcepub fn semver(&self) -> Option<(u32, u32, u32, Option<&str>)>
pub fn semver(&self) -> Option<(u32, u32, u32, Option<&str>)>
Try to parse the version string as a semver string. Returns None if not successful.
pub fn semver_or_panic(&self) -> (u32, u32, u32, Option<&str>)
sourcepub fn older_than(&self, major: u32, minor: u32, patch: u32) -> bool
pub fn older_than(&self, major: u32, minor: u32, patch: u32) -> bool
Return true if self is older than the given major/minor/patch
pub fn bump(&self, part: VersionPart, keep_tag: bool) -> Self
Trait Implementations§
source§impl Clone for WriterVersion
impl Clone for WriterVersion
source§fn clone(&self) -> WriterVersion
fn clone(&self) -> WriterVersion
Returns a copy of the value. Read more
1.0.0 · 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 WriterVersion
impl Debug for WriterVersion
source§impl Default for WriterVersion
impl Default for WriterVersion
source§impl PartialEq for WriterVersion
impl PartialEq for WriterVersion
source§fn eq(&self, other: &WriterVersion) -> bool
fn eq(&self, other: &WriterVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for WriterVersion
Auto Trait Implementations§
impl RefUnwindSafe for WriterVersion
impl Send for WriterVersion
impl Sync for WriterVersion
impl Unpin for WriterVersion
impl UnwindSafe for WriterVersion
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