Enum tc_tensor::AxisBounds
source · Expand description
The bounds of a Tensor
along a single axis.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for AxisBounds
impl Clone for AxisBounds
source§fn clone(&self) -> AxisBounds
fn clone(&self) -> AxisBounds
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AxisBounds
impl Debug for AxisBounds
source§impl Display for AxisBounds
impl Display for AxisBounds
source§impl From<u64> for AxisBounds
impl From<u64> for AxisBounds
source§fn from(at: u64) -> AxisBounds
fn from(at: u64) -> AxisBounds
Converts to this type from the input type.
source§impl FromIterator<AxisBounds> for Bounds
impl FromIterator<AxisBounds> for Bounds
source§fn 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
source§impl PartialEq<AxisBounds> for AxisBounds
impl PartialEq<AxisBounds> for AxisBounds
source§fn eq(&self, other: &AxisBounds) -> bool
fn eq(&self, other: &AxisBounds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryCastFrom<Value> for AxisBounds
impl TryCastFrom<Value> for AxisBounds
source§fn can_cast_from(value: &Value) -> bool
fn can_cast_from(value: &Value) -> bool
Test if
value
can be cast into Self
.source§fn 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
.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§
source§impl<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.source§fn 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
.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.source§fn 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
.