pub struct LibTarget { /* private fields */ }Expand description
Represents a [lib] table
Implementations§
Source§impl LibTarget
impl LibTarget
Sourcepub fn new() -> LibTargetBuilder
pub fn new() -> LibTargetBuilder
Constructs a new builder for a lib target
Sourcepub fn path(&self) -> Option<&String>
pub fn path(&self) -> Option<&String>
Returns the value of the path to the root for this lib target
Sourcepub fn doctest(&self) -> Option<bool>
pub fn doctest(&self) -> Option<bool>
Returns the value of the doctest flag for this lib target
Sourcepub fn proc_macro(&self) -> Option<bool>
pub fn proc_macro(&self) -> Option<bool>
Returns the value of the proc-macro flag for this lib target
Sourcepub fn harness(&self) -> Option<bool>
pub fn harness(&self) -> Option<bool>
Returns the value of the harness flag for this lib target
Sourcepub fn crate_type(&self) -> Option<CrateType>
pub fn crate_type(&self) -> Option<CrateType>
Returns the value of the crate-type for this lib target
Trait Implementations§
Source§impl<'a> From<&'a mut LibTargetBuilder> for LibTarget
impl<'a> From<&'a mut LibTargetBuilder> for LibTarget
Source§fn from(target: &'a mut LibTargetBuilder) -> LibTarget
fn from(target: &'a mut LibTargetBuilder) -> LibTarget
Converts to this type from the input type.
impl StructuralPartialEq for LibTarget
Auto Trait Implementations§
impl Freeze for LibTarget
impl RefUnwindSafe for LibTarget
impl Send for LibTarget
impl Sync for LibTarget
impl Unpin for LibTarget
impl UnsafeUnpin for LibTarget
impl UnwindSafe for LibTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more