Enum stc_arc_cow::ArcCow
source · [−]Variants
Arc(Freezed<T>)
Owned(Box<T>)
Implementations
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for ArcCow<T>where
T: DeserializeOwned + Take + Freeze,
impl<'de, T> Deserialize<'de> for ArcCow<T>where
T: DeserializeOwned + Take + Freeze,
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> EqIgnoreSpan for ArcCow<T>where
T: EqIgnoreSpan + Take + Freeze,
impl<T> EqIgnoreSpan for ArcCow<T>where
T: EqIgnoreSpan + Take + Freeze,
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl<T> Freeze for ArcCow<T>where
T: Take + Clone + Freeze,
impl<T> Freeze for ArcCow<T>where
T: Take + Clone + Freeze,
sourcefn is_clone_cheap(&self) -> bool
fn is_clone_cheap(&self) -> bool
Returns
true
if `Clone::clone is cheap.sourcefn freeze(&mut self)
fn freeze(&mut self)
Make `Clone::clone cheap.
sourcefn freezed(self) -> Self
fn freezed(self) -> Self
Call
Self::freeze
and return self
.sourceimpl<T> Ord for ArcCow<T>where
T: Ord + Take + Freeze,
impl<T> Ord for ArcCow<T>where
T: Ord + Take + Freeze,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T> PartialEq<ArcCow<T>> for ArcCow<T>where
T: PartialEq + Take + Freeze,
impl<T> PartialEq<ArcCow<T>> for ArcCow<T>where
T: PartialEq + Take + Freeze,
sourceimpl<T> PartialEq<T> for ArcCow<T>where
T: PartialEq + Take + Freeze,
impl<T> PartialEq<T> for ArcCow<T>where
T: PartialEq + Take + Freeze,
sourceimpl<T> PartialOrd<ArcCow<T>> for ArcCow<T>where
T: PartialOrd + Take + Freeze,
impl<T> PartialOrd<ArcCow<T>> for ArcCow<T>where
T: PartialOrd + Take + Freeze,
sourcefn partial_cmp(&self, r: &Self) -> Option<Ordering>
fn partial_cmp(&self, r: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<T, V> VisitMutWith<V> for ArcCow<T>where
V: ?Sized,
T: Clone + VisitMutWith<V> + Take + Freeze,
impl<T, V> VisitMutWith<V> for ArcCow<T>where
V: ?Sized,
T: Clone + VisitMutWith<V> + Take + Freeze,
fn visit_mut_children_with(&mut self, v: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<T, V> VisitWith<V> for ArcCow<T>where
V: ?Sized,
T: VisitWith<V> + Take + Freeze,
impl<T, V> VisitWith<V> for ArcCow<T>where
V: ?Sized,
T: VisitWith<V> + Take + Freeze,
fn visit_children_with(&self, v: &mut V)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl<T> Eq for ArcCow<T>where
T: Eq + Take + Freeze,
impl<T> Visitable for ArcCow<T>where
T: Take + Freeze,
Auto Trait Implementations
impl<T> RefUnwindSafe for ArcCow<T>where
T: RefUnwindSafe,
impl<T> Send for ArcCow<T>where
T: Send + Sync,
impl<T> Sync for ArcCow<T>where
T: Send + Sync,
impl<T> Unpin for ArcCow<T>where
T: Unpin,
impl<T> UnwindSafe for ArcCow<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> AssertCloneCheap for Twhere
T: Freeze,
impl<T> AssertCloneCheap for Twhere
T: Freeze,
sourcefn assert_clone_cheap(&self)
fn assert_clone_cheap(&self)
Assert that
self
is cheap to clone. This noop on production build.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
sourcefn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.