pub struct Requirement {
pub name: String,
pub req: VersionReq,
pub by: String,
pub span: Span,
}Expand description
A requirement on a package, and where it came from.
Fields§
§name: String§req: VersionReq§by: StringThe package that made it, named in M0015.
span: SpanThe root’s manifest entry through which it is reached, where M0014 and M0015 point (spec §4.5).
Trait Implementations§
Source§impl Clone for Requirement
impl Clone for Requirement
Auto Trait Implementations§
impl Freeze for Requirement
impl RefUnwindSafe for Requirement
impl Send for Requirement
impl Sync for Requirement
impl Unpin for Requirement
impl UnsafeUnpin for Requirement
impl UnwindSafe for Requirement
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