Trait RefCountedMut
Source pub trait RefCountedMut<S: ?Sized + StringToFromBytes>: RefCounted<S> {
// Required methods
fn to_mut(&mut self) -> &mut S;
fn as_mut(&mut self) -> &mut S;
}
Expand description
Trait for storage that can be reference counted and mutable
Borrow the string as a mutable string reference, allocating and copying first, if needed.
Borrow the string as a mutable string reference. It will panic if the string is shared.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Source§Available on crate feature str only.
Source§Available on crate feature str only.
Source§Available on crate feature cstr only.
Source§Available on crate feature cstr only.
Source§Available on crate features std and osstr only.
Source§Available on crate features std and osstr only.
Source§Available on crate features std and path only.
Source§Available on crate features std and path only.
Source§Available on crate feature bytes only.
Source§Available on crate feature bytes only.