#[non_exhaustive]pub struct Current {
pub driver: Driver,
pub path: PathBuf,
pub raw: String,
pub version: String,
}Expand description
A package’s version as its file contains it now, from
PackageSpec::current.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.driver: DriverThe driver that read the version and writes the next one.
path: PathBufThe version file, joined to the repository root.
raw: StringThe file’s text: empty for a VERSION file that does not exist yet.
version: StringThe version, trimmed.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Current
impl Freeze for Current
impl Move for Current
impl RefUnwindSafe for Current
impl Send for Currentwhere
RawVecInner: Send,
impl Sync for Currentwhere
RawVecInner: Sync,
impl Unpin for Current
impl UnsafeUnpin for Currentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Currentwhere
RawVecInner: UnwindSafe,
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