pub struct DependencySpec { /* private fields */ }Implementations§
Source§impl DependencySpec
impl DependencySpec
pub fn name(&self) -> &str
pub fn version(&self) -> Option<&str>
pub fn path(&self) -> Option<&str>
pub fn kind(&self) -> Option<DependencyKind>
pub fn features(&self) -> &[String]
pub fn default_features(&self) -> Option<bool>
pub fn externs(&self) -> Option<&str>
pub fn is_legacy(&self) -> bool
Trait Implementations§
Source§impl Clone for DependencySpec
impl Clone for DependencySpec
Source§fn clone(&self) -> DependencySpec
fn clone(&self) -> DependencySpec
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DependencySpec
impl RefUnwindSafe for DependencySpec
impl Send for DependencySpec
impl Sync for DependencySpec
impl Unpin for DependencySpec
impl UnsafeUnpin for DependencySpec
impl UnwindSafe for DependencySpec
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