pub struct EncodableResolve { /* private fields */ }
Expand description
The Cargo.lock
structure.
Implementations
sourceimpl EncodableResolve
impl EncodableResolve
sourcepub fn into_resolve(
self,
original: &str,
ws: &Workspace<'_>
) -> CargoResult<Resolve>
pub fn into_resolve(
self,
original: &str,
ws: &Workspace<'_>
) -> CargoResult<Resolve>
Convert a Cargo.lock
to a Resolve.
Note that this Resolve
is not “complete”. For example, the
dependencies do not know the difference between regular/dev/build
dependencies, so they are not filled in. It also does not include
features
. Care should be taken when using this Resolve. One of the
primary uses is to be used with resolve_with_previous
to guide the
resolver to create a complete Resolve.
Trait Implementations
sourceimpl Debug for EncodableResolve
impl Debug for EncodableResolve
sourceimpl<'de> Deserialize<'de> for EncodableResolve
impl<'de> Deserialize<'de> for EncodableResolve
sourcefn 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
sourceimpl Serialize for EncodableResolve
impl Serialize for EncodableResolve
Auto Trait Implementations
impl RefUnwindSafe for EncodableResolve
impl Send for EncodableResolve
impl Sync for EncodableResolve
impl Unpin for EncodableResolve
impl UnwindSafe for EncodableResolve
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more