pub enum ArcUnionBorrow<'a, A: 'a, B: 'a> {
First(ArcBorrow<'a, A>),
Second(ArcBorrow<'a, B>),
}Expand description
This represents a borrow of an ArcUnion.
Variants§
Implementations§
Source§impl<'a, A, B> ArcUnionBorrow<'a, A, B>
impl<'a, A, B> ArcUnionBorrow<'a, A, B>
Sourcepub fn strong_count(this: &Self) -> usize
pub fn strong_count(this: &Self) -> usize
The reference count of this Arc.
The number does not include borrowed pointers,
or temporary Arc pointers created with functions like
ArcBorrow::with_arc.
The function is called strong_count to mirror std::sync::Arc::strong_count,
however triomphe::Arc does not support weak references.
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, B> Freeze for ArcUnionBorrow<'a, A, B>
impl<'a, A, B> RefUnwindSafe for ArcUnionBorrow<'a, A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, A, B> Send for ArcUnionBorrow<'a, A, B>
impl<'a, A, B> Sync for ArcUnionBorrow<'a, A, B>
impl<'a, A, B> Unpin for ArcUnionBorrow<'a, A, B>
impl<'a, A, B> UnwindSafe for ArcUnionBorrow<'a, A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
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
Layout§
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: 16 bytes
Size for each variant:
First: 8 bytesSecond: 8 bytes