OriginMethods

Trait OriginMethods 

Source
pub trait OriginMethods<D>
where D: DomTypes,
{ // Required methods fn From( cx: JSContext, global: &<D as DomTypes>::GlobalScope, value: Handle<'_, Value>, ) -> Result<Root<Dom<<D as DomTypes>::Origin>>, Error>; fn Opaque(&self) -> bool; fn IsSameOrigin(&self, other: &<D as DomTypes>::Origin) -> bool; fn IsSameSite(&self, other: &<D as DomTypes>::Origin) -> bool; fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::Origin>>; }

Required Methods§

Source

fn From( cx: JSContext, global: &<D as DomTypes>::GlobalScope, value: Handle<'_, Value>, ) -> Result<Root<Dom<<D as DomTypes>::Origin>>, Error>

Source

fn Opaque(&self) -> bool

Source

fn IsSameOrigin(&self, other: &<D as DomTypes>::Origin) -> bool

Source

fn IsSameSite(&self, other: &<D as DomTypes>::Origin) -> bool

Source

fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::Origin>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§