pub struct Community { /* private fields */ }Expand description
Implementations§
Source§impl Community
impl Community
Sourcepub fn extend<I>(&mut self, packages: I)where
I: IntoIterator<Item = PackageV1>,
pub fn extend<I>(&mut self, packages: I)where
I: IntoIterator<Item = PackageV1>,
Inserts a batch of packages into this community’s index.
§Examples
use loadsmith_thunderstore::in_memory::Community;
let mut community = Community::default();
// PackageV1 batches are typically obtained from the thunderstore APITrait Implementations§
Source§impl<'de> Deserialize<'de> for Community
impl<'de> Deserialize<'de> for Community
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 Community
impl RefUnwindSafe for Community
impl Send for Community
impl Sync for Community
impl Unpin for Community
impl UnsafeUnpin for Community
impl UnwindSafe for Community
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