pub(crate) struct VersionInfo {
pub(crate) version: &'static str,
pub(crate) release_channel: Option<&'static str>,
pub(crate) commit_info: Option<CommitInfo>,
}Expand description
Cargo’s version.
Fields§
§version: &'static strrust-analyzer’s version, such as “1.57.0”, “1.58.0-beta.1”, “1.59.0-nightly”, etc.
release_channel: Option<&'static str>The release channel we were built for (stable/beta/nightly/dev).
None if not built via bootstrap.
commit_info: Option<CommitInfo>Information about the Git repository we may have been built from.
None if not built from a git repo.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
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