pub trait AttrMethods<D>where
D: DomTypes,{
// Required methods
fn GetNamespaceURI(&self) -> Option<DOMString>;
fn GetPrefix(&self) -> Option<DOMString>;
fn LocalName(&self) -> DOMString;
fn Name(&self) -> DOMString;
fn Value(&self) -> DOMString;
fn SetValue(
&self,
cx: &mut JSContext,
value: DOMString,
) -> Result<(), Error>;
fn GetOwnerElement(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn Specified(&self) -> bool;
}Required Methods§
fn GetNamespaceURI(&self) -> Option<DOMString>
fn GetPrefix(&self) -> Option<DOMString>
fn LocalName(&self) -> DOMString
fn Name(&self) -> DOMString
fn Value(&self) -> DOMString
fn SetValue(&self, cx: &mut JSContext, value: DOMString) -> Result<(), Error>
fn GetOwnerElement(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn Specified(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".