#[non_exhaustive]#[repr(u32)]pub enum StringOptionKey {
BellSound = 0,
BellStyle = 1,
CursorStyle = 2,
FontFamily = 3,
FontWeight = 4,
FontWeightBold = 5,
LogLevel = 6,
RendererType = 7,
TermName = 8,
WordSeparator = 9,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BellSound = 0
BellStyle = 1
CursorStyle = 2
FontFamily = 3
FontWeight = 4
FontWeightBold = 5
LogLevel = 6
RendererType = 7
TermName = 8
WordSeparator = 9
Implementations§
Source§impl StringOptionKey
impl StringOptionKey
pub fn from_js_value(obj: &JsValue) -> Option<StringOptionKey>
Trait Implementations§
Source§impl From<StringOptionKey> for JsValue
impl From<StringOptionKey> for JsValue
Source§fn from(val: StringOptionKey) -> Self
fn from(val: StringOptionKey) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for StringOptionKey
impl FromWasmAbi for StringOptionKey
Source§impl IntoWasmAbi for StringOptionKey
impl IntoWasmAbi for StringOptionKey
Source§impl OptionFromWasmAbi for StringOptionKey
impl OptionFromWasmAbi for StringOptionKey
Source§impl OptionIntoWasmAbi for StringOptionKey
impl OptionIntoWasmAbi for StringOptionKey
Auto Trait Implementations§
impl Freeze for StringOptionKey
impl RefUnwindSafe for StringOptionKey
impl Send for StringOptionKey
impl Sync for StringOptionKey
impl Unpin for StringOptionKey
impl UnwindSafe for StringOptionKey
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.