[−][src]Enum opencl_core::VecOrSlice
Variants
Vec(Vec<T>)
Slice(&'a [T])
Methods
impl<'a, T> VecOrSlice<'a, T> where
T: Clone,
[src]
T: Clone,
pub fn iter(&self) -> impl Iterator<Item = &T>
[src]
pub fn len(&self) -> usize
[src]
pub fn as_slice(&self) -> &[T]
[src]
pub fn to_vec(self) -> Vec<T>
[src]
Trait Implementations
impl<'a, T> From<&'a [T]> for VecOrSlice<'a, T> where
T: Clone,
[src]
T: Clone,
fn from(d: &'a [T]) -> VecOrSlice<'a, T>
[src]
impl<'a, T> From<Vec<T>> for VecOrSlice<'a, T> where
T: Clone,
[src]
T: Clone,
fn from(v: Vec<T>) -> VecOrSlice<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for VecOrSlice<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for VecOrSlice<'a, T> where
T: Send + Sync,
T: Send + Sync,
impl<'a, T> Sync for VecOrSlice<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for VecOrSlice<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for VecOrSlice<'a, T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,