Struct librsnek::system::rc::impl_single_threaded::StrongRc1.0.0 [] [src]

pub struct StrongRc<T> where
    T: ?Sized
{ ptr: Shared<RcBox<T>>, }

A single-threaded reference-counting pointer.

Fields

Methods

impl<T> Rc<T>
[src]

Constructs a new Rc<T>.

Returns the contained value, if the Rc has exactly one strong reference.

Consumes the Rc, returning the wrapped pointer.

Constructs an Rc from a raw pointer.

impl Rc<str>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

for internal use in rustc

Constructs a new Rc<str> from a string slice.

impl<T> Rc<[T]>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

for internal use in rustc

Constructs a new Rc<[T]> from a Box<[T]>.

impl<T> Rc<T> where
    T: ?Sized
[src]

Creates a new [Weak][weak] pointer to this value.

Gets the number of [Weak][weak] pointers to this value.

Gets the number of strong (Rc) pointers to this value.

Returns a mutable reference to the inner value, if there are

Returns true if the two Rcs point to the same value (not

impl<T> Rc<T> where
    T: Clone
[src]

Makes a mutable reference into the given Rc.

Trait Implementations

impl<C> Completer for Rc<C> where
    C: Completer + ?Sized
[src]

impl<T> UnwindSafe for Rc<T> where
    T: RefUnwindSafe + ?Sized
1.9.0
[src]

impl<T> !Sync for Rc<T> where
    T: ?Sized
[src]

impl<T> AsRef<T> for Rc<T> where
    T: ?Sized
1.5.0
[src]

Performs the conversion.

impl<T> Display for Rc<T> where
    T: Display + ?Sized
[src]

Formats the value using the given formatter.

impl<T> Borrow<T> for Rc<T> where
    T: ?Sized
[src]

Immutably borrows from an owned value.

impl<T> Hash for Rc<T> where
    T: Hash + ?Sized
[src]

Feeds this value into the given [Hasher].

Feeds a slice of this type into the given [Hasher].

impl<T> Ord for Rc<T> where
    T: Ord + ?Sized
[src]

Comparison for two Rcs.

impl<T> Eq for Rc<T> where
    T: Eq + ?Sized
[src]

impl<T> From<T> for Rc<T>
1.6.0
[src]

Performs the conversion.

impl<T> Drop for Rc<T> where
    T: ?Sized
[src]

Drops the Rc.

impl<T, U> CoerceUnsized<Rc<U>> for Rc<T> where
    T: Unsize<U> + ?Sized,
    U: ?Sized
[src]

impl<T> Clone for Rc<T> where
    T: ?Sized
[src]

Makes a clone of the Rc pointer.

Performs copy-assignment from source.

impl<T> PartialOrd<Rc<T>> for Rc<T> where
    T: PartialOrd<T> + ?Sized
[src]

Partial comparison for two Rcs.

Less-than comparison for two Rcs.

'Less than or equal to' comparison for two Rcs.

Greater-than comparison for two Rcs.

'Greater than or equal to' comparison for two Rcs.

impl<T> Pointer for Rc<T> where
    T: ?Sized
[src]

impl<T> PartialEq<Rc<T>> for Rc<T> where
    T: PartialEq<T> + ?Sized
[src]

Equality for two Rcs.

Inequality for two Rcs.

impl<T> Debug for Rc<T> where
    T: Debug + ?Sized
[src]

Formats the value using the given formatter.

impl<T> Deref for Rc<T> where
    T: ?Sized
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T> Default for Rc<T> where
    T: Default
[src]

Creates a new Rc<T>, with the Default value for T.

impl<T> !Send for Rc<T> where
    T: ?Sized
[src]

impl<T> Encodable for Rc<T> where
    T: Encodable
[src]

impl<T> Decodable for Rc<T> where
    T: Decodable
[src]

impl<T> Value for Rc<T> where
    T: Value
[src]