Re-exportsΒ§
use core::any::Any;πuse core::cell::CloneFromCell;πExperimental use core::clone::TrivialClone;πExperimental use core::clone::CloneToUninit;πExperimental use core::clone::UseCloned;πExperimental use core::cmp::Ordering;πuse core::hash::Hash;πuse core::hash::Hash;πuse core::hash::Hasher;πuse core::iter;πuse core::marker::PhantomData;πuse core::marker::Unsize;πExperimental use core::mem;πuse core::mem::Alignment;πuse core::mem::ManuallyDrop;πuse core::num::NonZeroUsize;πuse core::ops::CoerceUnsized;πExperimental use core::ops::Deref;πuse core::ops::DerefMut;πuse core::ops::DerefPure;πExperimental use core::ops::DispatchFromDyn;πExperimental use core::ops::LegacyReceiver;πExperimental use core::ops::Residual;πExperimental use core::ops::Try;πExperimental use core::panic::RefUnwindSafe;πuse core::panic::UnwindSafe;πuse core::pin::Pin;πuse core::pin::PinSafePointer;πExperimental use core::ptr;πuse core::ptr::NonNull;πuse core::slice::from_raw_parts_mut;πuse core::sync::atomic::Ordering::Acquire;πuse core::sync::atomic::Ordering::Relaxed;πuse core::sync::atomic::Ordering::Release;πuse core::sync::atomic;πuse core::sync::atomic::Atomic;πExperimental use core::borrow;πuse core::fmt;πuse core::hint;πuse core::intrinsics;πExperimental use crate::alloc::handle_alloc_error;πuse crate::alloc::AllocError;πuse crate::alloc::Allocator;πuse crate::alloc::AllocatorClone;πExperimental use crate::alloc::AllocatorNightly;πExperimental use crate::alloc::Global;πuse crate::alloc::Layout;πuse crate::alloc::StaticAllocator;πExperimental use crate::borrow::Cow;πuse crate::borrow::ToOwned;πuse crate::boxed::Box;πuse crate::rc::is_dangling;πuse crate::string::String;πuse crate::vec::Vec;π
MacrosΒ§
- acquire π
Non- sanitize=thread
StructsΒ§
- Arc
- A thread-safe reference-counting pointer. βArcβ stands for βAtomically Reference Countedβ.
- ArcInner π
- Slice
ArcInner πForStatic - Struct to hold the static
ArcInnerused for emptyArc<str/CStr/[T]>as returned byDefault::default. - Unique
ArcUninit π - A unique owning pointer to an
ArcInnerthat does not imply the contents are initialized, but will deallocate it (without dropping the value) when dropped. - Weak
Weakis a version ofArcthat holds a non-owning reference to the managed allocation.- Weak
Inner π - Helper type to allow accessing the reference counts without making any assertions about the data field.
- Unique
Arc Experimental - A uniquely owned
Arc.
ConstantsΒ§
- MAX_
REFCOUNT π - A soft limit on the amount of references that may be made to an
Arc. - MAX_
STATIC_ πINNER_ SLICE_ ALIGNMENT
StaticsΒ§
- STATIC_
INNER_ πSLICE
TraitsΒ§
- ArcEq
Ident π - ArcFrom
Slice π - Specialization trait used for
From<&[T]>. - ToArc
Slice π - Specialization trait used for collecting into
Arc<[T]>.
FunctionsΒ§
- arcinner_
layout_ πfor_ value_ layout - Calculate layout for
ArcInner<T>using the inner valueβs layout - data_
offset π β - Gets the offset within an
ArcInnerfor the payload behind a pointer. - data_
offset_ πalignment - panic_
arc_ πoverflow