pub struct AssertionErrorOptions { /* private fields */ }Implementations§
Source§impl AssertionErrorOptions
impl AssertionErrorOptions
pub fn new( message: Option<JsString>, actual: JsValue, expected: JsValue, operator: JsString, ) -> AssertionErrorOptions
pub fn set_message(&mut self, value: Option<JsString>)
pub fn set_actual(&mut self, value: JsValue)
pub fn set_expected(&mut self, value: JsValue)
pub fn set_operator(&mut self, value: JsString)
Trait Implementations§
Source§impl From<AssertionErrorOptions> for JsValue
impl From<AssertionErrorOptions> for JsValue
Source§fn from(value: AssertionErrorOptions) -> Self
fn from(value: AssertionErrorOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AssertionErrorOptions
impl FromWasmAbi for AssertionErrorOptions
Source§impl IntoWasmAbi for AssertionErrorOptions
impl IntoWasmAbi for AssertionErrorOptions
Source§impl RefFromWasmAbi for AssertionErrorOptions
impl RefFromWasmAbi for AssertionErrorOptions
Source§type Anchor = RcRef<AssertionErrorOptions>
type Anchor = RcRef<AssertionErrorOptions>
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 VectorFromWasmAbi for AssertionErrorOptions
impl VectorFromWasmAbi for AssertionErrorOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AssertionErrorOptions]>
Source§impl VectorIntoJsValue for AssertionErrorOptions
impl VectorIntoJsValue for AssertionErrorOptions
fn vector_into_jsvalue(vector: Box<[AssertionErrorOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for AssertionErrorOptions
impl VectorIntoWasmAbi for AssertionErrorOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AssertionErrorOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for AssertionErrorOptions
impl WasmDescribeVector for AssertionErrorOptions
impl SupportsConstructor for AssertionErrorOptions
impl SupportsInstanceProperty for AssertionErrorOptions
impl SupportsStaticProperty for AssertionErrorOptions
Auto Trait Implementations§
impl Freeze for AssertionErrorOptions
impl RefUnwindSafe for AssertionErrorOptions
impl !Send for AssertionErrorOptions
impl !Sync for AssertionErrorOptions
impl Unpin for AssertionErrorOptions
impl UnwindSafe for AssertionErrorOptions
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::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.