Fields
data: Vec<T>
index: Option<usize>
Implementations
sourceimpl<T> Index<T>
impl<T> Index<T>
pub fn new(data: Vec<T>, index: Option<usize>) -> Self
pub fn up(&mut self)
pub fn down(&mut self)
pub fn up_with_len(&mut self, len: usize)
pub fn down_with_len(&mut self, len: usize)
pub fn selected(&self) -> Option<&T>
pub fn len(&self) -> usize
pub fn select(&mut self, i: Option<usize>)
pub fn is_none(&self) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Index<T> where
T: RefUnwindSafe,
impl<T> Send for Index<T> where
T: Send,
impl<T> Sync for Index<T> where
T: Sync,
impl<T> Unpin for Index<T> where
T: Unpin,
impl<T> UnwindSafe for Index<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more