pub(crate) enum ReceiverStorage {
Erased,
Ordinary,
}Expand description
Where a shim’s receiver lives: the vtable shims reach trait-ABI storage
(abi::ErasedObject<T>), the .Call wrapper of a trait impl method an
ordinary ExternalPtr value.
Variants§
Erased
Trait-ABI storage. The declaration’s shims are generic over the
implementing type, so its exclusive borrow is the one without a
TypedExternal bound (borrow_erased_value_mut): no R field getter
reads that storage, so it has no cached field values to drop.
Ordinary
An ExternalPtr value: its exclusive borrow drops the value’s cached
field values (#[r_data(cache)], #2271).
Trait Implementations§
Source§impl Clone for ReceiverStorage
impl Clone for ReceiverStorage
impl Copy for ReceiverStorage
Source§impl Eq for ReceiverStorage
impl Eq for ReceiverStorage
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)Source§impl PartialEq for ReceiverStorage
impl PartialEq for ReceiverStorage
impl StructuralPartialEq for ReceiverStorage
impl TrivialClone for ReceiverStorage
Auto Trait Implementations§
impl Forget for ReceiverStorage
impl Freeze for ReceiverStorage
impl RefUnwindSafe for ReceiverStorage
impl Send for ReceiverStorage
impl Sync for ReceiverStorage
impl Unpin for ReceiverStorage
impl UnsafeUnpin for ReceiverStorage
impl UnwindSafe for ReceiverStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Erased: 0 bytesOrdinary: 0 bytes