Struct SliceArcInnerForStatic
#[repr(C, align(16))]
pub(in ::sync) struct SliceArcInnerForStatic { pub(in ::sync) inner: ArcInner<[u8; 1]> }
Struct to hold the static ArcInner used for empty Arc<str/CStr/[T]> as
returned by Default::default.
Layout notes:
repr(align(16))so we can use it for[T]withalign_of::<T>() <= 16.repr(C)soinneris at offset 0 (and thus guaranteed to actually be aligned to 16).[u8; 1](to be initialized with 0) so it can be used forArc<CStr>.
Fields
inner: ArcInner<[u8; 1]>
Auto Trait Implementations
impl !Freeze for SliceArcInnerForStatic
impl RefUnwindSafe for SliceArcInnerForStatic
impl Send for SliceArcInnerForStatic
impl Sync for SliceArcInnerForStatic
impl Unpin for SliceArcInnerForStatic
impl UnsafeUnpin for SliceArcInnerForStatic
impl UnwindSafe for SliceArcInnerForStatic
Blanket Implementations
impl<T> Any for SliceArcInnerForStatic
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SliceArcInnerForStatic
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SliceArcInnerForStatic
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SliceArcInnerForStatic
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for SliceArcInnerForStatic
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for SliceArcInnerForStatic
impl<T, U> Into<U> for SliceArcInnerForStatic
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SliceArcInnerForStatic
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for SliceArcInnerForStatic
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>