Enum tc_tensor::AxisBounds
source · [−]Expand description
The bounds of a Tensor
along a single axis.
Variants
At(u64)
In(Range<u64>)
Of(Vec<u64>)
Implementations
Trait Implementations
sourceimpl Clone for AxisBounds
impl Clone for AxisBounds
sourcefn clone(&self) -> AxisBounds
fn clone(&self) -> AxisBounds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AxisBounds
impl Debug for AxisBounds
sourceimpl Display for AxisBounds
impl Display for AxisBounds
sourceimpl From<Range<u64>> for AxisBounds
impl From<Range<u64>> for AxisBounds
sourcefn from(range: Range<u64>) -> AxisBounds
fn from(range: Range<u64>) -> AxisBounds
Converts to this type from the input type.
sourceimpl From<Vec<u64, Global>> for AxisBounds
impl From<Vec<u64, Global>> for AxisBounds
sourcefn from(of: Vec<u64>) -> AxisBounds
fn from(of: Vec<u64>) -> AxisBounds
Converts to this type from the input type.
sourceimpl From<u64> for AxisBounds
impl From<u64> for AxisBounds
sourcefn from(at: u64) -> AxisBounds
fn from(at: u64) -> AxisBounds
Converts to this type from the input type.
sourceimpl FromIterator<AxisBounds> for Bounds
impl FromIterator<AxisBounds> for Bounds
sourcefn from_iter<T: IntoIterator<Item = AxisBounds>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = AxisBounds>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl PartialEq<AxisBounds> for AxisBounds
impl PartialEq<AxisBounds> for AxisBounds
sourceimpl TryCastFrom<Value> for AxisBounds
impl TryCastFrom<Value> for AxisBounds
sourcefn can_cast_from(value: &Value) -> bool
fn can_cast_from(value: &Value) -> bool
Test if value
can be cast into Self
.
sourcefn opt_cast_from(value: Value) -> Option<AxisBounds>
fn opt_cast_from(value: Value) -> Option<AxisBounds>
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
sourcefn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
Auto Trait Implementations
impl RefUnwindSafe for AxisBounds
impl Send for AxisBounds
impl Sync for AxisBounds
impl Unpin for AxisBounds
impl UnwindSafe for AxisBounds
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
sourceimpl<F> Match for F
impl<F> Match for F
sourcefn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
Returns true
if self
can be cast into the target type 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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
sourcefn can_cast_from(&F) -> bool
fn can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
sourcefn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
sourcefn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
sourceimpl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
sourcefn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if self
can be cast into T
.
sourcefn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns Some(T)
if self
can be cast into T
, otherwise None
.
sourcefn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.