Struct silkenweb::prelude::MutableVec
source · pub struct MutableVec<A>(/* private fields */);
Implementations§
source§impl<A> MutableVec<A>
impl<A> MutableVec<A>
pub fn new_with_values(values: Vec<A>) -> MutableVec<A>
pub fn new() -> MutableVec<A>
pub fn with_capacity(capacity: usize) -> MutableVec<A>
pub fn lock_ref(&self) -> MutableVecLockRef<'_, A>
pub fn lock_mut(&self) -> MutableVecLockMut<'_, A>
source§impl<A> MutableVec<A>where
A: Copy,
impl<A> MutableVec<A>where
A: Copy,
pub fn signal_vec(&self) -> MutableSignalVec<A>
source§impl<A> MutableVec<A>where
A: Clone,
impl<A> MutableVec<A>where
A: Clone,
pub fn signal_vec_cloned(&self) -> MutableSignalVec<A>
Trait Implementations§
source§impl<T> Clone for MutableVec<T>
impl<T> Clone for MutableVec<T>
source§fn clone(&self) -> MutableVec<T>
fn clone(&self) -> MutableVec<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<A> Debug for MutableVec<A>where
A: Debug,
impl<A> Debug for MutableVec<A>where
A: Debug,
source§impl<T> Default for MutableVec<T>
impl<T> Default for MutableVec<T>
source§fn default() -> MutableVec<T>
fn default() -> MutableVec<T>
Returns the “default value” for a type. Read more
source§impl<T, A> From<T> for MutableVec<A>
impl<T, A> From<T> for MutableVec<A>
source§fn from(values: T) -> MutableVec<A>
fn from(values: T) -> MutableVec<A>
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for MutableVec<A>
impl<A> RefUnwindSafe for MutableVec<A>
impl<A> Send for MutableVec<A>
impl<A> Sync for MutableVec<A>
impl<A> Unpin for MutableVec<A>
impl<A> UnwindSafe for MutableVec<A>
Blanket Implementations§
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
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