pub trait HTMLSourceElementMethods<D: DomTypes> {
Show 14 methods
// Required methods
fn Src(&self) -> USVString;
fn SetSrc(&self, cx: &mut JSContext, value: USVString);
fn Type(&self) -> DOMString;
fn SetType(&self, cx: &mut JSContext, value: DOMString);
fn Srcset(&self) -> USVString;
fn SetSrcset(&self, cx: &mut JSContext, value: USVString);
fn Sizes(&self) -> DOMString;
fn SetSizes(&self, cx: &mut JSContext, value: DOMString);
fn Media(&self) -> DOMString;
fn SetMedia(&self, cx: &mut JSContext, value: DOMString);
fn Width(&self) -> u32;
fn SetWidth(&self, cx: &mut JSContext, value: u32);
fn Height(&self) -> u32;
fn SetHeight(&self, cx: &mut JSContext, value: u32);
}Required Methods§
fn Src(&self) -> USVString
fn SetSrc(&self, cx: &mut JSContext, value: USVString)
fn Type(&self) -> DOMString
fn SetType(&self, cx: &mut JSContext, value: DOMString)
fn Srcset(&self) -> USVString
fn SetSrcset(&self, cx: &mut JSContext, value: USVString)
fn Sizes(&self) -> DOMString
fn SetSizes(&self, cx: &mut JSContext, value: DOMString)
fn Media(&self) -> DOMString
fn SetMedia(&self, cx: &mut JSContext, value: DOMString)
fn Width(&self) -> u32
fn SetWidth(&self, cx: &mut JSContext, value: u32)
fn Height(&self) -> u32
fn SetHeight(&self, cx: &mut JSContext, value: u32)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".