pub struct NamespaceIndex<T> {
pub namespace_id: PipelineNamespaceId,
pub index: Index<T>,
}
Expand description
A pipeline-namespaced index associated with a particular type.
Fields§
§namespace_id: PipelineNamespaceId
§index: Index<T>
Implementations§
Source§impl NamespaceIndex<PipelineIndex>
impl NamespaceIndex<PipelineIndex>
pub fn new() -> PipelineId
Source§impl NamespaceIndex<PipelineIndex>
impl NamespaceIndex<PipelineIndex>
pub fn root_scroll_id(&self) -> ExternalScrollId
Source§impl NamespaceIndex<BrowsingContextIndex>
impl NamespaceIndex<BrowsingContextIndex>
pub fn new() -> BrowsingContextId
Source§impl NamespaceIndex<MessagePortIndex>
impl NamespaceIndex<MessagePortIndex>
pub fn new() -> MessagePortId
Source§impl NamespaceIndex<MessagePortRouterIndex>
impl NamespaceIndex<MessagePortRouterIndex>
pub fn new() -> MessagePortRouterId
Source§impl NamespaceIndex<BroadcastChannelRouterIndex>
impl NamespaceIndex<BroadcastChannelRouterIndex>
pub fn new() -> BroadcastChannelRouterId
Source§impl NamespaceIndex<ServiceWorkerIndex>
impl NamespaceIndex<ServiceWorkerIndex>
pub fn new() -> ServiceWorkerId
Source§impl NamespaceIndex<ServiceWorkerRegistrationIndex>
impl NamespaceIndex<ServiceWorkerRegistrationIndex>
pub fn new() -> ServiceWorkerRegistrationId
Source§impl NamespaceIndex<DomPointIndex>
impl NamespaceIndex<DomPointIndex>
pub fn new() -> DomPointId
Source§impl NamespaceIndex<DomExceptionIndex>
impl NamespaceIndex<DomExceptionIndex>
pub fn new() -> DomExceptionId
Source§impl NamespaceIndex<HistoryStateIndex>
impl NamespaceIndex<HistoryStateIndex>
pub fn new() -> HistoryStateId
Source§impl NamespaceIndex<ImageBitmapIndex>
impl NamespaceIndex<ImageBitmapIndex>
pub fn new() -> ImageBitmapId
Source§impl NamespaceIndex<OffscreenCanvasIndex>
impl NamespaceIndex<OffscreenCanvasIndex>
pub fn new() -> OffscreenCanvasId
Trait Implementations§
Source§impl<T: Clone> Clone for NamespaceIndex<T>
impl<T: Clone> Clone for NamespaceIndex<T>
Source§fn clone(&self) -> NamespaceIndex<T>
fn clone(&self) -> NamespaceIndex<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for NamespaceIndex<T>
impl<T> Debug for NamespaceIndex<T>
Source§impl<'de, T> Deserialize<'de> for NamespaceIndex<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for NamespaceIndex<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Indexable> Display for NamespaceIndex<T>
impl<T: Indexable> Display for NamespaceIndex<T>
Source§impl From<&NamespaceIndex<PipelineIndex>> for PipelineId
impl From<&NamespaceIndex<PipelineIndex>> for PipelineId
Source§fn from(value: &PipelineId) -> Self
fn from(value: &PipelineId) -> Self
Converts to this type from the input type.
Source§impl From<NamespaceIndex<PipelineIndex>> for PipelineId
impl From<NamespaceIndex<PipelineIndex>> for PipelineId
Source§fn from(value: PipelineId) -> Self
fn from(value: PipelineId) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for NamespaceIndex<T>
impl<T: Hash> Hash for NamespaceIndex<T>
Source§impl<T> MallocSizeOf for NamespaceIndex<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for NamespaceIndex<T>where
T: MallocSizeOf,
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<T: Ord> Ord for NamespaceIndex<T>
impl<T: Ord> Ord for NamespaceIndex<T>
Source§fn cmp(&self, other: &NamespaceIndex<T>) -> Ordering
fn cmp(&self, other: &NamespaceIndex<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for NamespaceIndex<T>
impl<T: PartialEq> PartialEq for NamespaceIndex<T>
Source§impl<T: PartialOrd> PartialOrd for NamespaceIndex<T>
impl<T: PartialOrd> PartialOrd for NamespaceIndex<T>
Source§impl<T> Serialize for NamespaceIndex<T>where
T: Serialize,
impl<T> Serialize for NamespaceIndex<T>where
T: Serialize,
impl<T: Copy> Copy for NamespaceIndex<T>
impl<T: Eq> Eq for NamespaceIndex<T>
impl<T> StructuralPartialEq for NamespaceIndex<T>
Auto Trait Implementations§
impl<T> Freeze for NamespaceIndex<T>
impl<T> RefUnwindSafe for NamespaceIndex<T>where
T: RefUnwindSafe,
impl<T> Send for NamespaceIndex<T>where
T: Send,
impl<T> Sync for NamespaceIndex<T>where
T: Sync,
impl<T> Unpin for NamespaceIndex<T>where
T: Unpin,
impl<T> UnwindSafe for NamespaceIndex<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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