Enum hex_patch::app::settings::settings_value::SettingsValue
source · 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 copy 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<'lua> FromLua<'lua> for SettingsValue
impl<'lua> FromLua<'lua> for SettingsValue
source§impl<'lua> IntoLua<'lua> for SettingsValue
impl<'lua> IntoLua<'lua> for SettingsValue
source§impl PartialEq for SettingsValue
impl PartialEq for SettingsValue
source§fn eq(&self, other: &SettingsValue) -> bool
fn eq(&self, other: &SettingsValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> 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<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>
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 to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more