pub(crate) trait DOMExceptionMethods<D: DomTypes> {
// Required methods
fn Code(&self) -> u16;
fn Name(&self) -> DOMString;
fn Message(&self) -> DOMString;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
message: DOMString,
name: DOMString,
) -> Fallible<DomRoot<D::DOMException>>;
}
Required Methods§
fn Code(&self) -> u16
fn Name(&self) -> DOMString
fn Message(&self) -> DOMString
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, message: DOMString, name: DOMString, ) -> Fallible<DomRoot<D::DOMException>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.