Struct script::dom::cssviewportrule::CSSViewportRule
source · #[repr(C)]pub struct CSSViewportRule {
cssrule: CSSRule,
viewportrule: Arc<Locked<ViewportRule>>,
}
Fields§
§cssrule: CSSRule
§viewportrule: Arc<Locked<ViewportRule>>
Implementations§
source§impl CSSViewportRule
impl CSSViewportRule
fn __assert_parent_type(&self)
source§impl CSSViewportRule
impl CSSViewportRule
fn new_inherited(
parent_stylesheet: &CSSStyleSheet,
viewportrule: Arc<Locked<ViewportRule>>
) -> CSSViewportRule
pub fn new(
window: &Window,
parent_stylesheet: &CSSStyleSheet,
viewportrule: Arc<Locked<ViewportRule>>
) -> Root<Dom<CSSViewportRule>>
Trait Implementations§
source§impl Castable for CSSViewportRule
impl Castable for CSSViewportRule
source§impl DomObject for CSSViewportRule
impl DomObject for CSSViewportRule
source§impl DomObjectWrap for CSSViewportRule
impl DomObjectWrap for CSSViewportRule
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::CSSViewportRuleBinding::CSSViewportRuleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::cssviewportrule::CSSViewportRule>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::cssviewportrule::CSSViewportRule>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::CSSViewportRuleBinding::CSSViewportRuleBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::cssviewportrule::CSSViewportRule>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::cssviewportrule::CSSViewportRule>>}
Function pointer to the general wrap function type
source§impl HasParent for CSSViewportRule
impl HasParent for CSSViewportRule
source§impl IDLInterface for CSSViewportRule
impl IDLInterface for CSSViewportRule
source§impl JSTraceable for CSSViewportRule
impl JSTraceable for CSSViewportRule
source§impl MallocSizeOf for CSSViewportRule
impl MallocSizeOf for CSSViewportRule
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for CSSViewportRule
impl MutDomObject for CSSViewportRule
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<CSSViewportRule> for CSSViewportRule
impl PartialEq<CSSViewportRule> for CSSViewportRule
source§fn eq(&self, other: &CSSViewportRule) -> bool
fn eq(&self, other: &CSSViewportRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpecificCSSRule for CSSViewportRule
impl SpecificCSSRule for CSSViewportRule
source§impl ToJSValConvertible for CSSViewportRule
impl ToJSValConvertible for CSSViewportRule
impl DerivedFrom<CSSRule> for CSSViewportRule
Auto Trait Implementations§
impl !RefUnwindSafe for CSSViewportRule
impl !Send for CSSViewportRule
impl !Sync for CSSViewportRule
impl Unpin for CSSViewportRule
impl !UnwindSafe for CSSViewportRule
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert