Struct script::dom::webglobject::WebGLObject
source · #[repr(C)]pub struct WebGLObject {
reflector_: Reflector,
context: Dom<WebGLRenderingContext>,
}
Fields
reflector_: Reflector
context: Dom<WebGLRenderingContext>
Implementations
sourceimpl WebGLObject
impl WebGLObject
pub fn type_id(&self) -> &'static WebGLObjectTypeId
sourceimpl WebGLObject
impl WebGLObject
pub fn new_inherited(context: &WebGLRenderingContext) -> WebGLObject
pub fn context(&self) -> &WebGLRenderingContext
Trait Implementations
sourceimpl Castable for WebGLObject
impl Castable for WebGLObject
sourcefn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
fn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
Check whether a DOM object implements one of its deriving interfaces.
sourcefn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
fn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
Cast a DOM object upwards to one of the interfaces it derives from.
sourcefn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
fn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
Cast a DOM object downwards to one of the interfaces it might implement.
sourceimpl DomObject for WebGLObject
impl DomObject for WebGLObject
sourceimpl HasParent for WebGLObject
impl HasParent for WebGLObject
sourceimpl IDLInterface for WebGLObject
impl IDLInterface for WebGLObject
sourceimpl JSTraceable for WebGLObject
impl JSTraceable for WebGLObject
sourceimpl MallocSizeOf for WebGLObject
impl MallocSizeOf for WebGLObject
sourcefn 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. Read more
sourceimpl MutDomObject for WebGLObject
impl MutDomObject for WebGLObject
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<WebGLObject> for WebGLObject
impl PartialEq<WebGLObject> for WebGLObject
sourcefn eq(&self, other: &WebGLObject) -> bool
fn eq(&self, other: &WebGLObject) -> bool
sourceimpl ToJSValConvertible for WebGLObject
impl ToJSValConvertible for WebGLObject
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.impl DerivedFrom<WebGLObject> for WebGLBuffer
impl DerivedFrom<WebGLObject> for WebGLFramebuffer
impl DerivedFrom<WebGLObject> for WebGLObject
impl DerivedFrom<WebGLObject> for WebGLProgram
impl DerivedFrom<WebGLObject> for WebGLQuery
impl DerivedFrom<WebGLObject> for WebGLRenderbuffer
impl DerivedFrom<WebGLObject> for WebGLSampler
impl DerivedFrom<WebGLObject> for WebGLShader
impl DerivedFrom<WebGLObject> for WebGLSync
impl DerivedFrom<WebGLObject> for WebGLTexture
impl DerivedFrom<WebGLObject> for WebGLTransformFeedback
impl DerivedFrom<WebGLObject> for WebGLVertexArrayObject
impl DerivedFrom<WebGLObject> for WebGLVertexArrayObjectOES
Auto Trait Implementations
impl !RefUnwindSafe for WebGLObject
impl !Send for WebGLObject
impl !Sync for WebGLObject
impl Unpin for WebGLObject
impl !UnwindSafe for WebGLObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert