pub enum StyleOrRef {
Style(Style),
Ref(String),
}Variants§
Trait Implementations§
Source§impl Clone for StyleOrRef
impl Clone for StyleOrRef
Source§fn clone(&self) -> StyleOrRef
fn clone(&self) -> StyleOrRef
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 StyleOrRef
impl Debug for StyleOrRef
Source§impl Default for StyleOrRef
impl Default for StyleOrRef
Source§impl<'de> Deserialize<'de> for StyleOrRef
impl<'de> Deserialize<'de> for StyleOrRef
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 From<StyleOrRef> for JsValue
impl From<StyleOrRef> for JsValue
Source§fn from(val: StyleOrRef) -> Self
fn from(val: StyleOrRef) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for StyleOrRef
impl FromWasmAbi for StyleOrRef
Source§impl IntoWasmAbi for StyleOrRef
impl IntoWasmAbi for StyleOrRef
Source§impl Serialize for StyleOrRef
impl Serialize for StyleOrRef
Auto Trait Implementations§
impl Freeze for StyleOrRef
impl RefUnwindSafe for StyleOrRef
impl !Send for StyleOrRef
impl !Sync for StyleOrRef
impl Unpin for StyleOrRef
impl UnwindSafe for StyleOrRef
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> 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::AbiSource§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.