Struct node_maintainer::Lockfile
source · pub struct Lockfile { /* private fields */ }Expand description
A representation of a resolved lockfile.
Implementations§
source§impl Lockfile
impl Lockfile
pub fn version(&self) -> u64
pub fn root(&self) -> &LockfileNode
pub fn packages(&self) -> &IndexMap<UniCase<String>, LockfileNode>
pub fn to_kdl(&self) -> KdlDocument
pub fn from_kdl(kdl: impl IntoKdl) -> Result<Self, NodeMaintainerError>
pub fn from_npm(npm: impl AsRef<str>) -> Result<Self, NodeMaintainerError>
Trait Implementations§
source§impl PartialEq<Lockfile> for Lockfile
impl PartialEq<Lockfile> for Lockfile
impl Eq for Lockfile
impl StructuralEq for Lockfile
impl StructuralPartialEq for Lockfile
Auto Trait Implementations§
impl RefUnwindSafe for Lockfile
impl Send for Lockfile
impl Sync for Lockfile
impl Unpin for Lockfile
impl UnwindSafe for Lockfile
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.