pub struct Repo { /* private fields */ }Expand description
The version repository for Forge and NeoForge.
Implementations§
Source§impl Repo
impl Repo
Sourcepub fn iter(&self) -> RepoIter<'_> ⓘ
pub fn iter(&self) -> RepoIter<'_> ⓘ
Return an iterator over all loaders in the repository, the iteration order is not consistent between Forge and NeoForge.
Sourcepub fn find_by_name(&self, name: &str) -> Option<RepoVersion<'_>>
pub fn find_by_name(&self, name: &str) -> Option<RepoVersion<'_>>
Return the repository version that has this exact name.
Sourcepub fn find_latest(
&self,
game_version: &str,
stable: bool,
) -> Option<RepoVersion<'_>>
pub fn find_latest( &self, game_version: &str, stable: bool, ) -> Option<RepoVersion<'_>>
Find the latest loader version given, optionally with a specified game version and stable or not. Note that the latest stable version is also the latest unstable one if no version is unstable before it.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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