pub(crate) struct RcVecBuilder<T> {
inner: Vec<T>,
}
Fields§
§inner: Vec<T>
Implementations§
source§impl<T> RcVecBuilder<T>
impl<T> RcVecBuilder<T>
pub(crate) fn new() -> Self
pub(crate) fn with_capacity(cap: usize) -> Self
pub(crate) fn push(&mut self, element: T)
pub(crate) fn extend(&mut self, iter: impl IntoIterator<Item = T>)
pub(crate) fn as_mut(&mut self) -> RcVecMut<'_, T>
pub(crate) fn build(self) -> RcVec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RcVecBuilder<T>
impl<T> RefUnwindSafe for RcVecBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for RcVecBuilder<T>where
T: Send,
impl<T> Sync for RcVecBuilder<T>where
T: Sync,
impl<T> Unpin for RcVecBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for RcVecBuilder<T>where
T: UnwindSafe,
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