pub(crate) 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§
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>>
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.