pub struct Crates { /* private fields */ }Implementations§
Source§impl Crates
impl Crates
pub fn new() -> Self
pub fn push(&mut self, crate_: Crate) -> CrateId
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, id: CrateId) -> Option<&Crate>
pub fn get_mut(&mut self, id: CrateId) -> Option<&mut Crate>
pub fn iter(&self) -> impl Iterator<Item = (CrateId, &Crate)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (CrateId, &mut Crate)>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Crates
impl<'de> Deserialize<'de> for Crates
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
Auto Trait Implementations§
impl Freeze for Crates
impl RefUnwindSafe for Crates
impl Send for Crates
impl Sync for Crates
impl Unpin for Crates
impl UnwindSafe for Crates
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more