pub struct CoreSettings { /* private fields */ }Expand description
Core Settings, which is a list of setting items that can be displayed in the core’s setting menu. This is an abstraction over all possible settings that a core can have.
Implementations§
Source§impl CoreSettings
impl CoreSettings
pub fn new(title: String, items: Vec<CoreSettingItem>) -> Self
pub fn items(&self) -> &[CoreSettingItem]
Trait Implementations§
Source§impl Debug for CoreSettings
impl Debug for CoreSettings
Auto Trait Implementations§
impl Freeze for CoreSettings
impl RefUnwindSafe for CoreSettings
impl Send for CoreSettings
impl Sync for CoreSettings
impl Unpin for CoreSettings
impl UnwindSafe for CoreSettings
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> 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