Struct egui::util::id_type_map::SerializedElement
source · struct SerializedElement {
type_id: TypeId,
ron: Arc<str>,
generation: usize,
}
Fields§
§type_id: TypeId
The type of value we are storing.
ron: Arc<str>
The ron data we can deserialize.
generation: usize
Increased by one each time we re-serialize an element that was never deserialized.
Large value = old value that hasn’t been read in a while.
Used to garbage collect old values that hasn’t been read in a while.
Trait Implementations§
source§impl Clone for SerializedElement
impl Clone for SerializedElement
source§fn clone(&self) -> SerializedElement
fn clone(&self) -> SerializedElement
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 moreAuto Trait Implementations§
impl Freeze for SerializedElement
impl RefUnwindSafe for SerializedElement
impl Send for SerializedElement
impl Sync for SerializedElement
impl Unpin for SerializedElement
impl UnwindSafe for SerializedElement
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