pub struct RefMut<T: ?Sized + Repr, M: BitMask = u32>(_, _);
Expand description

An Rc which has mutable access to the inner value. Only one RefMut can exist, and cannot coexist with any Ref.

Implementations

Creates a new reference.

Creates a new reference from a str.

Creates a new slice reference from an iterator.

Returns a new Weak reference, or panics if there are no such references available

Returns a new Strong reference, or panics if there are no such references available

Returns a new Weak reference, or returns an error if there are no such references available

Returns a new Strong reference, or returns an error if there are no such references available

Returns the current state

Reverts poisoning

Poisoning happens when a RefMut is dropped during a panic.

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.