Type Alias webrender::prim_store::image::ImageKey

source ·
pub type ImageKey = PrimKey<Image>;

Aliased Type§

struct ImageKey {
    pub common: PrimKeyCommonData,
    pub kind: Image,
}

Fields§

§common: PrimKeyCommonData§kind: Image

Implementations§

source§

impl PrimKey<Image>

source

pub fn new(info: &LayoutPrimitiveInfo, image: Image) -> Self

Trait Implementations§

source§

impl<T: Clone + MallocSizeOf> Clone for PrimKey<T>

source§

fn clone(&self) -> PrimKey<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + MallocSizeOf> Debug for PrimKey<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Hash + MallocSizeOf> Hash for PrimKey<T>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl InternDebug for PrimKey<Image>

source§

fn on_interned(&self, _uid: ItemUid)

source§

impl<T> MallocSizeOf for PrimKey<T>where T: MallocSizeOf + MallocSizeOf,

source§

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: PartialEq + MallocSizeOf> PartialEq<PrimKey<T>> for PrimKey<T>

source§

fn eq(&self, other: &PrimKey<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Serialize for PrimKey<T>where T: Serialize + MallocSizeOf,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Eq + MallocSizeOf> Eq for PrimKey<T>

source§

impl<T: MallocSizeOf> StructuralEq for PrimKey<T>

source§

impl<T: MallocSizeOf> StructuralPartialEq for PrimKey<T>