Struct mmtk::vm::slot::UnimplementedMemorySlice
source · pub struct UnimplementedMemorySlice<SL: Slot = SimpleSlot>(PhantomData<SL>);
Expand description
Memory slice type with empty implementations. For VMs that do not use the memory slice type.
Tuple Fields§
§0: PhantomData<SL>
Trait Implementations§
source§impl<SL: Clone + Slot> Clone for UnimplementedMemorySlice<SL>
impl<SL: Clone + Slot> Clone for UnimplementedMemorySlice<SL>
source§fn clone(&self) -> UnimplementedMemorySlice<SL>
fn clone(&self) -> UnimplementedMemorySlice<SL>
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<SL: Slot> MemorySlice for UnimplementedMemorySlice<SL>
impl<SL: Slot> MemorySlice for UnimplementedMemorySlice<SL>
§type SlotIterator = UnimplementedMemorySliceSlotIterator<SL>
type SlotIterator = UnimplementedMemorySliceSlotIterator<SL>
The associate type to define how to iterate slots in a memory slice.
source§fn iter_slots(&self) -> Self::SlotIterator
fn iter_slots(&self) -> Self::SlotIterator
Iterate object slots within the slice. If there are non-reference values in the slice, the iterator should skip them.
source§fn object(&self) -> Option<ObjectReference>
fn object(&self) -> Option<ObjectReference>
The object which this slice belongs to. If we know the object for the slice, we will check the object state (e.g. mature or not), rather than the slice address.
Normally checking the object and checking the slice does not make a difference, as the slice is part of the object (in terms of memory range). However,
if a slice is in a different location from the object, the object state and the slice can be hugely different, and providing a proper implementation
of this method for the owner object is important.
source§impl<SL: PartialEq + Slot> PartialEq for UnimplementedMemorySlice<SL>
impl<SL: PartialEq + Slot> PartialEq for UnimplementedMemorySlice<SL>
source§fn eq(&self, other: &UnimplementedMemorySlice<SL>) -> bool
fn eq(&self, other: &UnimplementedMemorySlice<SL>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<SL: Eq + Slot> Eq for UnimplementedMemorySlice<SL>
impl<SL: Slot> StructuralPartialEq for UnimplementedMemorySlice<SL>
Auto Trait Implementations§
impl<SL> RefUnwindSafe for UnimplementedMemorySlice<SL>where
SL: RefUnwindSafe,
impl<SL> Send for UnimplementedMemorySlice<SL>
impl<SL> Sync for UnimplementedMemorySlice<SL>where
SL: Sync,
impl<SL> Unpin for UnimplementedMemorySlice<SL>where
SL: Unpin,
impl<SL> UnwindSafe for UnimplementedMemorySlice<SL>where
SL: 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 more