#[repr(transparent)]pub struct DescriptorPtr(pub *const PluginDescriptor);Expand description
A Sync wrapper for a raw pointer to a PluginDescriptor.
Used in static contexts where a *const PluginDescriptor needs to live
in a static variable (which requires Sync). The pointed-to descriptor
must have 'static lifetime.
Tuple Fields§
§0: *const PluginDescriptorTrait Implementations§
impl Send for DescriptorPtr
impl Sync for DescriptorPtr
Auto Trait Implementations§
impl Freeze for DescriptorPtr
impl RefUnwindSafe for DescriptorPtr
impl Unpin for DescriptorPtr
impl UnsafeUnpin for DescriptorPtr
impl UnwindSafe for DescriptorPtr
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