pub enum SettingsValue {
Bool(bool),
Int(i64),
Float(f64),
String(String),
Style(Style),
Key(KeyEvent),
}Variants§
Trait Implementations§
Source§impl Clone for SettingsValue
impl Clone for SettingsValue
Source§fn clone(&self) -> SettingsValue
fn clone(&self) -> SettingsValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettingsValue
impl Debug for SettingsValue
Source§impl<'de> Deserialize<'de> for SettingsValue
impl<'de> Deserialize<'de> for SettingsValue
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
Source§impl Display for SettingsValue
impl Display for SettingsValue
Source§impl From<&str> for SettingsValue
impl From<&str> for SettingsValue
Source§impl From<KeyEvent> for SettingsValue
impl From<KeyEvent> for SettingsValue
Source§impl From<String> for SettingsValue
impl From<String> for SettingsValue
Source§impl From<Style> for SettingsValue
impl From<Style> for SettingsValue
Source§impl From<bool> for SettingsValue
impl From<bool> for SettingsValue
Source§impl From<f64> for SettingsValue
impl From<f64> for SettingsValue
Source§impl From<i64> for SettingsValue
impl From<i64> for SettingsValue
Source§impl FromLua for SettingsValue
impl FromLua for SettingsValue
Source§impl IntoLua for SettingsValue
impl IntoLua for SettingsValue
Source§impl PartialEq for SettingsValue
impl PartialEq for SettingsValue
Source§impl Serialize for SettingsValue
impl Serialize for SettingsValue
impl StructuralPartialEq for SettingsValue
Auto Trait Implementations§
impl Freeze for SettingsValue
impl RefUnwindSafe for SettingsValue
impl Send for SettingsValue
impl Sync for SettingsValue
impl Unpin for SettingsValue
impl UnwindSafe for SettingsValue
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> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
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 moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &RawLua) -> Result<i32, Error>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more