pub struct CachedDisplayItem {
item: DisplayItem,
data: Vec<u8>,
}
Fields§
§item: DisplayItem
§data: Vec<u8>
Implementations§
source§impl CachedDisplayItem
impl CachedDisplayItem
pub fn display_item(&self) -> &DisplayItem
pub fn data_as_item_range<T>(&self) -> ItemRange<'_, T>
Trait Implementations§
source§impl Clone for CachedDisplayItem
impl Clone for CachedDisplayItem
source§fn clone(&self) -> CachedDisplayItem
fn clone(&self) -> CachedDisplayItem
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 Debug for CachedDisplayItem
impl Debug for CachedDisplayItem
source§impl<'de> Deserialize<'de> for CachedDisplayItem
impl<'de> Deserialize<'de> for CachedDisplayItem
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 From<DisplayItemRef<'_, '_>> for CachedDisplayItem
impl From<DisplayItemRef<'_, '_>> for CachedDisplayItem
source§fn from(item_ref: DisplayItemRef<'_, '_>) -> Self
fn from(item_ref: DisplayItemRef<'_, '_>) -> Self
Converts to this type from the input type.
source§impl MallocSizeOf for CachedDisplayItem
impl MallocSizeOf for CachedDisplayItem
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 PartialEq for CachedDisplayItem
impl PartialEq for CachedDisplayItem
source§fn eq(&self, other: &CachedDisplayItem) -> bool
fn eq(&self, other: &CachedDisplayItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CachedDisplayItem
impl Serialize for CachedDisplayItem
impl StructuralPartialEq for CachedDisplayItem
Auto Trait Implementations§
impl Freeze for CachedDisplayItem
impl RefUnwindSafe for CachedDisplayItem
impl Send for CachedDisplayItem
impl Sync for CachedDisplayItem
impl Unpin for CachedDisplayItem
impl UnwindSafe for CachedDisplayItem
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