pub struct SeaRc;Expand description
A legacy namespace for compatibility.
Itโs needed, so that most existing SeaRc::new calls keep working.
This used to be an actual type
(a reference-counted pointer with special impls for dyn Iden contents).
Itโs not needed anymore.
Implementationsยง
Sourceยงimpl SeaRc
impl SeaRc
Sourcepub fn new<I>(i: I) -> DynIdenwhere
I: Iden,
pub fn new<I>(i: I) -> DynIdenwhere
I: Iden,
A legacy method, kept for compatibility.
Nowadays, instead of wrapping an Iden object,
it eagerly โrendersโ it into a string and then drops the object.
Note that most Idens are statically known
and their representations arenโt actually โrenderedโ and allocated at runtime.
pub fn clone(iden: &DynIden) -> DynIden
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for SeaRc
impl RefUnwindSafe for SeaRc
impl Send for SeaRc
impl Sync for SeaRc
impl Unpin for SeaRc
impl UnsafeUnpin for SeaRc
impl UnwindSafe for SeaRc
Blanket Implementationsยง
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self> โ
fn instrument(self, span: Span) -> Instrumented<Self> โ
Sourceยงfn in_current_span(self) -> Instrumented<Self> โ
fn in_current_span(self) -> 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