pub struct Dependency<'a> {
pub package: &'a str,
pub version_range: Option<VersionRange>,
pub cst_node: NodeId,
}Expand description
A parsed dependency from build-depends.
Fields§
§package: &'a strThe package name (e.g. "aeson", "base").
version_range: Option<VersionRange>The version constraint, if any.
cst_node: NodeIdBack-reference to the CST node (the Field or ValueLine containing this dependency).
Trait Implementations§
Source§impl<'a> Clone for Dependency<'a>
impl<'a> Clone for Dependency<'a>
Source§fn clone(&self) -> Dependency<'a>
fn clone(&self) -> Dependency<'a>
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 moreSource§impl<'a> Debug for Dependency<'a>
impl<'a> Debug for Dependency<'a>
Source§impl<'a> PartialEq for Dependency<'a>
impl<'a> PartialEq for Dependency<'a>
impl<'a> Eq for Dependency<'a>
impl<'a> StructuralPartialEq for Dependency<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dependency<'a>
impl<'a> RefUnwindSafe for Dependency<'a>
impl<'a> Send for Dependency<'a>
impl<'a> Sync for Dependency<'a>
impl<'a> Unpin for Dependency<'a>
impl<'a> UnsafeUnpin for Dependency<'a>
impl<'a> UnwindSafe for Dependency<'a>
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