Trait script::dom::bindings::codegen::Bindings::DOMParserBinding::DOMParser_Binding::DOMParserMethods
source · pub trait DOMParserMethods {
// Required methods
fn ParseFromString(
&self,
str: DOMString,
type_: SupportedType,
_can_gc: CanGc,
) -> Result<Root<Dom<Document>>, Error>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Result<Root<Dom<DOMParser>>, Error>;
}
Required Methods§
fn ParseFromString( &self, str: DOMString, type_: SupportedType, _can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<DOMParser>>, Error>
Object Safety§
This trait is not object safe.