pub struct Telescope<T>(/* private fields */);
Expand description
A sequence of arguments that depends on the previous sequence it’s similar to a iterated sigma type.
Implementations§
Source§impl<T> Telescope<T>
impl<T> Telescope<T>
pub fn new(vec: Vec<T>) -> Telescope<T>
pub fn len(&self) -> usize
pub fn push(&mut self, el: T)
pub fn as_slice(&self) -> &[T]
pub fn to_vec(self) -> Vec<T>
pub fn get_vec(&mut self) -> &mut Vec<T>
pub fn extend(&self, other: &Telescope<T>) -> Telescope<T>where
T: Clone,
pub fn map<B, F>(&self, f: F) -> Telescope<B>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, T>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
Trait Implementations§
Source§impl<A> IntoIterator for Telescope<A>
impl<A> IntoIterator for Telescope<A>
impl<T: Eq> Eq for Telescope<T>
impl<T> StructuralPartialEq for Telescope<T>
Auto Trait Implementations§
impl<T> Freeze for Telescope<T>
impl<T> RefUnwindSafe for Telescope<T>where
T: RefUnwindSafe,
impl<T> Send for Telescope<T>where
T: Send,
impl<T> Sync for Telescope<T>where
T: Sync,
impl<T> Unpin for Telescope<T>where
T: Unpin,
impl<T> UnwindSafe for Telescope<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