pub struct Elements { /* private fields */ }Implementations§
Source§impl Elements
impl Elements
pub fn single(element: impl Into<Element>) -> Self
pub fn iter(iter: impl IntoIterator<Item = Elements>) -> Self
pub fn option(option: Option<impl Into<Elements>>) -> Self
pub fn result(result: Result<impl Into<Elements>>) -> Self
pub fn dynamic(f: impl Fn() -> Element + 'static) -> Self
pub fn overlay(f: impl Fn() -> Element + 'static) -> Self
pub fn empty() -> Self
pub fn is_empty(&self) -> bool
pub fn non_empty(self) -> Option<Self>
Source§impl Elements
impl Elements
pub fn into_wrapper(self) -> ElementsWrapper
Trait Implementations§
Source§impl FromWasmAbi for Elements
impl FromWasmAbi for Elements
Source§impl IntoIterator for Elements
impl IntoIterator for Elements
Source§impl IntoWasmAbi for Elements
impl IntoWasmAbi for Elements
Source§impl LongRefFromWasmAbi for Elements
impl LongRefFromWasmAbi for Elements
Source§impl OptionFromWasmAbi for Elements
impl OptionFromWasmAbi for Elements
Source§impl OptionIntoWasmAbi for Elements
impl OptionIntoWasmAbi for Elements
Source§impl RefFromWasmAbi for Elements
impl RefFromWasmAbi for Elements
Source§impl RefMutFromWasmAbi for Elements
impl RefMutFromWasmAbi for Elements
Source§impl TryFromJsValue for Elements
impl TryFromJsValue for Elements
Source§impl VectorFromWasmAbi for Elements
impl VectorFromWasmAbi for Elements
Source§impl VectorIntoWasmAbi for Elements
impl VectorIntoWasmAbi for Elements
impl SupportsConstructor for Elements
impl SupportsInstanceProperty for Elements
impl SupportsStaticProperty for Elements
Auto Trait Implementations§
impl Freeze for Elements
impl !RefUnwindSafe for Elements
impl !Send for Elements
impl !Sync for Elements
impl Unpin for Elements
impl UnsafeUnpin for Elements
impl !UnwindSafe for Elements
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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.