pub struct Editors { /* private fields */ }Implementations
sourceimpl Editors
impl Editors
pub fn load() -> Result<Editors, UvmHubError>
pub fn create(map: HashMap<Version, EditorInstallation, RandomState>) -> Editors
pub fn add(&mut self, editor: &EditorInstallation) -> Option<EditorInstallation>
pub fn remove(
&mut self,
editor: &EditorInstallation
) -> Option<EditorInstallation>
pub fn remove_version(&mut self, version: &Version) -> Option<EditorInstallation>
pub fn flush(&self) -> Result<(), UvmHubError>
Trait Implementations
sourceimpl From<Editors> for Installations
impl From<Editors> for Installations
sourcefn from(editors: Editors) -> Installations ⓘ
fn from(editors: Editors) -> Installations ⓘ
Converts to this type from the input type.
sourceimpl IntoIterator for Editors
impl IntoIterator for Editors
type Item = EditorInstallation
type Item = EditorInstallation
The type of the elements being iterated over.
type IntoIter = IntoIter<EditorInstallation, Global>
type IntoIter = IntoIter<EditorInstallation, Global>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Editors
impl Send for Editors
impl Sync for Editors
impl Unpin for Editors
impl UnwindSafe for Editors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more