pub struct Link {
pub key: Option<String>,
pub source: String,
pub target: String,
pub constraint: Constraint,
pub pretty_constraint: String,
pub kind: LinkType,
}Expand description
Composer\Package\Link, plus its key in the PHP array holding it: the
target in general, the bare name for the platform’s lib-*
(PlatformRepository::addLibrary), none (numeric key) for the
self.version links added by AliasPackage. Pool::match looks up by
key.
Fields§
§key: Option<String>§source: String§target: String§constraint: Constraint§pretty_constraint: String§kind: LinkTypeImplementations§
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.