pub struct Lock { /* private fields */ }
Expand description
The graph of pinned packages represented as a toml-serialization-friendly structure.
Implementations§
source§impl Lock
impl Lock
sourcepub fn from_path(path: &Path) -> Result<Self>
pub fn from_path(path: &Path) -> Result<Self>
Load the Lock
structure from the TOML Forc.lock
file at the specified path.
sourcepub fn from_graph(graph: &Graph) -> Self
pub fn from_graph(graph: &Graph) -> Self
Given a graph of pinned packages, create a Lock
representing the Forc.lock
file
structure.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lock
impl<'de> Deserialize<'de> for Lock
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more