Struct GcCow
pub struct GcCow<T> {
idx: usize,
phantom_owned: PhantomData<T>,
phantom_not_send_sync: PhantomData<*mut T>,
}Expand description
A gargabe-collected pointer type implementing Copy.
Fields§
§idx: usize§phantom_owned: PhantomData<T>§phantom_not_send_sync: PhantomData<*mut T>Implementations§
Trait Implementations§
impl<T> Copy for GcCow<T>
§impl<'de, T> Deserialize<'de> for GcCow<T>where
T: Deserialize<'de> + GcCompat,
impl<'de, T> Deserialize<'de> for GcCow<T>where
T: Deserialize<'de> + GcCompat,
§fn deserialize<D>(
deserializer: D,
) -> Result<GcCow<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<GcCow<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Eq for GcCow<T>
§impl<T> Ord for GcCow<T>
impl<T> Ord for GcCow<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl<T> PartialOrd for GcCow<T>where
T: GcCompat + PartialOrd + Clone,
impl<T> PartialOrd for GcCow<T>where
T: GcCompat + PartialOrd + Clone,
§impl<T> Serialize for GcCow<T>where
T: Serialize + GcCompat,
impl<T> Serialize for GcCow<T>where
T: Serialize + GcCompat,
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<T> !Send for GcCow<T>
impl<T> !Sync for GcCow<T>
impl<T> Freeze for GcCow<T>
impl<T> RefUnwindSafe for GcCow<T>
impl<T> Unpin for GcCow<T>
impl<T> UnsafeUnpin for GcCow<T>
impl<T> UnwindSafe for GcCow<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more