pub struct Library {
name: String,
config: Config,
metadata: Metadata,
vendor_dir: VendorDir,
}Fields§
§name: String§config: Config§metadata: Metadata§vendor_dir: VendorDirImplementations§
Source§impl Library
impl Library
pub fn new( name: impl Into<String>, config: impl Into<Config>, metadata: impl Into<Metadata>, vendor_dir: VendorDir, ) -> Self
pub fn id(&self) -> String
pub fn name(&self) -> String
pub fn path(&self) -> PathBuf
pub fn config(&self) -> &Config
pub fn metadata(&self) -> &Metadata
pub fn include_dirs(&self) -> Vec<PathBuf>
pub fn link_libraries(&self) -> Vec<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
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