pub trait CSSStyleDeclarationMethods<D>where
D: DomTypes,{
// Required methods
fn CssText(&self, cx: &NoGC) -> DOMString;
fn SetCssText(
&self,
cx: &mut JSContext,
value: DOMString,
) -> Result<(), Error>;
fn Length(&self, cx: &NoGC) -> u32;
fn Item(&self, cx: &NoGC, index: u32) -> DOMString;
fn GetPropertyValue(&self, cx: &NoGC, property: DOMString) -> DOMString;
fn GetPropertyPriority(&self, property: DOMString) -> DOMString;
fn SetProperty(
&self,
cx: &mut JSContext,
property: DOMString,
value: DOMString,
priority: DOMString,
) -> Result<(), Error>;
fn RemoveProperty(
&self,
cx: &mut JSContext,
property: DOMString,
) -> Result<DOMString, Error>;
fn GetParentRule(
&self,
cx: &NoGC,
) -> Option<Root<Dom<<D as DomTypes>::CSSRule>>>;
fn IndexedGetter(&self, cx: &NoGC, index: u32) -> Option<DOMString>;
}Required Methods§
fn CssText(&self, cx: &NoGC) -> DOMString
fn SetCssText(&self, cx: &mut JSContext, value: DOMString) -> Result<(), Error>
fn Length(&self, cx: &NoGC) -> u32
fn Item(&self, cx: &NoGC, index: u32) -> DOMString
fn GetPropertyValue(&self, cx: &NoGC, property: DOMString) -> DOMString
fn GetPropertyPriority(&self, property: DOMString) -> DOMString
fn SetProperty( &self, cx: &mut JSContext, property: DOMString, value: DOMString, priority: DOMString, ) -> Result<(), Error>
fn RemoveProperty( &self, cx: &mut JSContext, property: DOMString, ) -> Result<DOMString, Error>
fn GetParentRule( &self, cx: &NoGC, ) -> Option<Root<Dom<<D as DomTypes>::CSSRule>>>
fn IndexedGetter(&self, cx: &NoGC, index: u32) -> Option<DOMString>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".