pub struct InlineCache { /* private fields */ }Implementations§
Source§impl InlineCache
impl InlineCache
pub fn new() -> Self
pub fn get(&self, shape_id: ShapeId) -> Option<(u32, Option<usize>)>
pub fn get_transition(&self, shape_id: ShapeId) -> Option<(u32, *const Shape)>
pub fn insert( &mut self, shape_id: ShapeId, offset: u32, proto_ptr: Option<usize>, )
pub fn insert_transition_null(&mut self, shape_id: ShapeId, offset: u32)
pub fn insert_transition( &mut self, pre_shape_id: ShapeId, offset: u32, new_shape: NonNull<Shape>, )
Trait Implementations§
Source§impl Clone for InlineCache
impl Clone for InlineCache
Source§fn clone(&self) -> InlineCache
fn clone(&self) -> InlineCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InlineCache
impl Debug for InlineCache
Auto Trait Implementations§
impl Freeze for InlineCache
impl RefUnwindSafe for InlineCache
impl Send for InlineCache
impl Sync for InlineCache
impl Unpin for InlineCache
impl UnsafeUnpin for InlineCache
impl UnwindSafe for InlineCache
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