Enum web_sys::ConsoleLevel
source · [−]pub enum ConsoleLevel {
Log,
Warning,
Error,
// some variants omitted
}
Expand description
The ConsoleLevel
enum.
This API requires the following crate features to be activated: ConsoleLevel
Variants
Log
Warning
Error
Implementations
sourceimpl ConsoleLevel
impl ConsoleLevel
pub fn from_js_value(obj: &JsValue) -> Option<ConsoleLevel>
Trait Implementations
sourceimpl Clone for ConsoleLevel
impl Clone for ConsoleLevel
sourcefn clone(&self) -> ConsoleLevel
fn clone(&self) -> ConsoleLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConsoleLevel
impl Debug for ConsoleLevel
sourceimpl From<ConsoleLevel> for JsValue
impl From<ConsoleLevel> for JsValue
sourcefn from(obj: ConsoleLevel) -> JsValue
fn from(obj: ConsoleLevel) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for ConsoleLevel
impl FromWasmAbi for ConsoleLevel
sourceimpl IntoWasmAbi for ConsoleLevel
impl IntoWasmAbi for ConsoleLevel
sourceimpl OptionFromWasmAbi for ConsoleLevel
impl OptionFromWasmAbi for ConsoleLevel
sourceimpl OptionIntoWasmAbi for ConsoleLevel
impl OptionIntoWasmAbi for ConsoleLevel
sourceimpl PartialEq<ConsoleLevel> for ConsoleLevel
impl PartialEq<ConsoleLevel> for ConsoleLevel
sourceimpl WasmDescribe for ConsoleLevel
impl WasmDescribe for ConsoleLevel
impl Copy for ConsoleLevel
impl Eq for ConsoleLevel
impl StructuralEq for ConsoleLevel
impl StructuralPartialEq for ConsoleLevel
Auto Trait Implementations
impl RefUnwindSafe for ConsoleLevel
impl Send for ConsoleLevel
impl Sync for ConsoleLevel
impl Unpin for ConsoleLevel
impl UnwindSafe for ConsoleLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more