pub struct Member { /* private fields */ }Expand description
A workspace member whose version a bump moves.
One rule decides which lockfile entry records it, for check when it
explains a lockfile change and for the version step when it decides whether
a lockfile owner has anything to do.
Implementations§
Source§impl Member
impl Member
Sourcepub fn new(manifest: impl Into<PathBuf>, names: BTreeSet<String>) -> Self
pub fn new(manifest: impl Into<PathBuf>, names: BTreeSet<String>) -> Self
The member whose manifest is manifest, recorded under any of
names.
Sourcepub fn records(
&self,
format: Format,
lock_dir: &Path,
name: &str,
label: &str,
) -> bool
pub fn records( &self, format: Format, lock_dir: &Path, name: &str, label: &str, ) -> bool
Whether the entry called name, labelled label, in the format
lockfile at lock_dir records this member.
Cargo.lock and uv.lock name a member, uv.lock by its PEP 503
normalised name. bun.lock and package-lock.json name it by its
directory.
Trait Implementations§
impl Eq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Forget for Member
impl Freeze for Memberwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin for Memberwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Member
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.