pub struct KiCadVersion<'a> {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub full: Cow<'a, str>,
}
Expand description
Describes a particular version of KiCad
Fields§
§major: u32
§minor: u32
§patch: u32
§full: Cow<'a, str>
Full version string.
Can include additional information like release candidate specifiers and commit hashes.
Implementations§
Source§impl KiCadVersion<'_>
impl KiCadVersion<'_>
Sourcepub fn into_owned(self) -> KiCadVersion<'static>
pub fn into_owned(self) -> KiCadVersion<'static>
Turn this version into a owned one, cloning the version string if its not already owned.
pub fn new( major: u32, minor: u32, patch: u32, full: String, ) -> KiCadVersion<'static>
Trait Implementations§
Source§impl<'a> Clone for KiCadVersion<'a>
impl<'a> Clone for KiCadVersion<'a>
Source§fn clone(&self) -> KiCadVersion<'a>
fn clone(&self) -> KiCadVersion<'a>
Returns a duplicate 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<'a> Debug for KiCadVersion<'a>
impl<'a> Debug for KiCadVersion<'a>
Source§impl Display for KiCadVersion<'_>
impl Display for KiCadVersion<'_>
Source§impl<'a> PartialEq for KiCadVersion<'a>
impl<'a> PartialEq for KiCadVersion<'a>
impl<'a> Eq for KiCadVersion<'a>
impl<'a> StructuralPartialEq for KiCadVersion<'a>
Auto Trait Implementations§
impl<'a> Freeze for KiCadVersion<'a>
impl<'a> RefUnwindSafe for KiCadVersion<'a>
impl<'a> Send for KiCadVersion<'a>
impl<'a> Sync for KiCadVersion<'a>
impl<'a> Unpin for KiCadVersion<'a>
impl<'a> UnwindSafe for KiCadVersion<'a>
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