pub struct FrozenSimpleState<F, O, M, P>where
F: Fact + Clone + 'static,
O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static,
M: Borrow<Graph<F, O>>,
P: Borrow<SimplePlan<F, O, M>> + Clone,{
pub inputs: HashMap<usize, Tensor>,
pub resolved_symbols: SymbolValues,
pub scenario: Option<usize>,
pub tensors: HashMap<String, Tensor>,
pub states: Vec<Option<Box<dyn FrozenOpState>>>,
pub values: Vec<Option<SmallVec<[Tensor; 4]>>>,
/* private fields */
}
Fields§
§inputs: HashMap<usize, Tensor>
§resolved_symbols: SymbolValues
§scenario: Option<usize>
§tensors: HashMap<String, Tensor>
§states: Vec<Option<Box<dyn FrozenOpState>>>
§values: Vec<Option<SmallVec<[Tensor; 4]>>>
Implementations§
Trait Implementations§
Source§impl<F, O, M, P> Clone for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> Clone for FrozenSimpleState<F, O, M, P>
Source§fn clone(&self) -> FrozenSimpleState<F, O, M, P>
fn clone(&self) -> FrozenSimpleState<F, O, M, P>
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<F, O, M, P> Debug for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> Debug for FrozenSimpleState<F, O, M, P>
Auto Trait Implementations§
impl<F, O, M, P> Freeze for FrozenSimpleState<F, O, M, P>where
P: Freeze,
impl<F, O, M, P> !RefUnwindSafe for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> Send for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> !Sync for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> Unpin for FrozenSimpleState<F, O, M, P>
impl<F, O, M, P> !UnwindSafe for FrozenSimpleState<F, O, M, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more