Struct vergen_git2::RustcBuilder
source · pub struct RustcBuilder { /* private fields */ }Available on crate feature
rustc only.Expand description
Builder for Rustc.
Implementations§
source§impl RustcBuilder
impl RustcBuilder
sourcepub fn channel(&mut self, value: bool) -> &mut RustcBuilder
pub fn channel(&mut self, value: bool) -> &mut RustcBuilder
Enable the rustc channel
sourcepub fn commit_date(&mut self, value: bool) -> &mut RustcBuilder
pub fn commit_date(&mut self, value: bool) -> &mut RustcBuilder
Enable the rustc commit date
sourcepub fn commit_hash(&mut self, value: bool) -> &mut RustcBuilder
pub fn commit_hash(&mut self, value: bool) -> &mut RustcBuilder
Enable the rustc SHA
sourcepub fn host_triple(&mut self, value: bool) -> &mut RustcBuilder
pub fn host_triple(&mut self, value: bool) -> &mut RustcBuilder
Enable rustc host triple
sourcepub fn llvm_version(&mut self, value: bool) -> &mut RustcBuilder
pub fn llvm_version(&mut self, value: bool) -> &mut RustcBuilder
Enable rustc LLVM version
sourcepub fn semver(&mut self, value: bool) -> &mut RustcBuilder
pub fn semver(&mut self, value: bool) -> &mut RustcBuilder
Enable the rustc semver
Trait Implementations§
source§impl Clone for RustcBuilder
impl Clone for RustcBuilder
source§fn clone(&self) -> RustcBuilder
fn clone(&self) -> RustcBuilder
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 Default for RustcBuilder
impl Default for RustcBuilder
source§fn default() -> RustcBuilder
fn default() -> RustcBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RustcBuilder
impl Send for RustcBuilder
impl Sync for RustcBuilder
impl Unpin for RustcBuilder
impl UnwindSafe for RustcBuilder
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