Struct multiarray::Wrapped
[−]
[src]
pub struct Wrapped<T>(pub T);
Helper type to wrap things. This helps avoiding trait coherency issues
w.r.t. AsRef
and From
.
Trait Implementations
impl<T: Clone> Clone for Wrapped<T>
[src]
fn clone(&self) -> Wrapped<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Wrapped<T>
[src]
impl<T> From<T> for Wrapped<[T; 1]>
[src]
fn from(x: T) -> Self
Performs the conversion.
impl<T> From<T> for Wrapped<T>
[src]
fn from(x: T) -> Self
Performs the conversion.
impl<B: ?Sized, O: AsRef<B>> AsRef<B> for Wrapped<O>
[src]
fn as_ref(&self) -> &B
Performs the conversion.
impl<B: ?Sized, O: AsMut<B>> AsMut<B> for Wrapped<O>
[src]
fn as_mut(&mut self) -> &mut B
Performs the conversion.