pub struct SourcesOptions { /* private fields */ }
Implementations§
Source§impl SourcesOptions
impl SourcesOptions
pub fn new( types: Box<[JsValue]>, thumbnail_size: Option<Size>, fetch_window_icons: Option<bool>, ) -> SourcesOptions
pub fn types(&self) -> Box<[JsValue]>
pub fn set_types(&mut self, value: Box<[JsValue]>)
pub fn thumbnail_size(&self) -> Option<Size>
pub fn set_thumbnail_size(&mut self, value: Option<Size>)
pub fn fetch_window_icons(&self) -> Option<bool>
pub fn set_fetch_window_icons(&mut self, value: Option<bool>)
Trait Implementations§
Source§impl Clone for SourcesOptions
impl Clone for SourcesOptions
Source§fn clone(&self) -> SourcesOptions
fn clone(&self) -> SourcesOptions
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 SourcesOptions
impl Debug for SourcesOptions
Source§impl From<SourcesOptions> for JsValue
impl From<SourcesOptions> for JsValue
Source§fn from(value: SourcesOptions) -> Self
fn from(value: SourcesOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SourcesOptions
impl FromWasmAbi for SourcesOptions
Source§impl IntoWasmAbi for SourcesOptions
impl IntoWasmAbi for SourcesOptions
Source§impl LongRefFromWasmAbi for SourcesOptions
impl LongRefFromWasmAbi for SourcesOptions
Source§impl OptionFromWasmAbi for SourcesOptions
impl OptionFromWasmAbi for SourcesOptions
Source§impl OptionIntoWasmAbi for SourcesOptions
impl OptionIntoWasmAbi for SourcesOptions
Source§impl PartialEq for SourcesOptions
impl PartialEq for SourcesOptions
Source§impl RefFromWasmAbi for SourcesOptions
impl RefFromWasmAbi for SourcesOptions
Source§type Anchor = RcRef<SourcesOptions>
type Anchor = RcRef<SourcesOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SourcesOptions
impl RefMutFromWasmAbi for SourcesOptions
Source§impl TryFromJsValue for SourcesOptions
impl TryFromJsValue for SourcesOptions
Source§impl VectorFromWasmAbi for SourcesOptions
impl VectorFromWasmAbi for SourcesOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SourcesOptions]>
Source§impl VectorIntoJsValue for SourcesOptions
impl VectorIntoJsValue for SourcesOptions
fn vector_into_jsvalue(vector: Box<[SourcesOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for SourcesOptions
impl VectorIntoWasmAbi for SourcesOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SourcesOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for SourcesOptions
impl WasmDescribeVector for SourcesOptions
impl StructuralPartialEq for SourcesOptions
impl SupportsConstructor for SourcesOptions
impl SupportsInstanceProperty for SourcesOptions
impl SupportsStaticProperty for SourcesOptions
Auto Trait Implementations§
impl Freeze for SourcesOptions
impl RefUnwindSafe for SourcesOptions
impl !Send for SourcesOptions
impl !Sync for SourcesOptions
impl Unpin for SourcesOptions
impl UnwindSafe for SourcesOptions
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::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
.