Struct tract_pulse::fact::PulsedFact
source · [−]pub struct PulsedFact {
pub datum_type: DatumType,
pub shape: ShapeFact,
pub axis: usize,
pub dim: TDim,
pub delay: usize,
}Fields
datum_type: DatumTypeshape: ShapeFactaxis: usizedim: TDimdelay: usizeImplementations
sourceimpl PulsedFact
impl PulsedFact
pub fn from_tensor_fact_pulse(
tf: &TypedFact,
pulse: usize
) -> TractResult<PulsedFact>
pub fn pulse(&self) -> usize
pub fn to_pulse_fact(&self) -> TypedFact
pub fn streaming_shape(&self) -> Vec<TDim>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn to_streaming_fact(&self) -> TypedFact
Trait Implementations
sourceimpl Clone for PulsedFact
impl Clone for PulsedFact
sourcefn clone(&self) -> PulsedFact
fn clone(&self) -> PulsedFact
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 PulsedFact
impl Debug for PulsedFact
sourceimpl Fact for PulsedFact
impl Fact for PulsedFact
fn to_typed_fact(&self) -> TractResult<Cow<'_, TypedFact>>
fn same_as(&self, other: &dyn Fact) -> bool
sourcefn compatible_with(&self, other: &dyn Fact) -> bool
fn compatible_with(&self, other: &dyn Fact) -> bool
Ensure that self is same type as another fact or a subtype
fn datum_type(&self) -> Option<DatumType>
fn matches(
&self,
t: &Tensor,
symbols: Option<&SymbolValues>
) -> Result<bool, Error>
sourceimpl<'a> From<&'a PulsedFact> for TypedFact
impl<'a> From<&'a PulsedFact> for TypedFact
sourcefn from(fact: &'a PulsedFact) -> TypedFact
fn from(fact: &'a PulsedFact) -> TypedFact
Converts to this type from the input type.
sourceimpl From<PulsedFact> for TypedFact
impl From<PulsedFact> for TypedFact
sourcefn from(fact: PulsedFact) -> TypedFact
fn from(fact: PulsedFact) -> TypedFact
Converts to this type from the input type.
sourceimpl Hash for PulsedFact
impl Hash for PulsedFact
sourceimpl PartialEq<PulsedFact> for PulsedFact
impl PartialEq<PulsedFact> for PulsedFact
sourcefn eq(&self, other: &PulsedFact) -> bool
fn eq(&self, other: &PulsedFact) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl SpecialOps<PulsedFact, Box<dyn PulsedOp + 'static, Global>> for PulsedModel
impl SpecialOps<PulsedFact, Box<dyn PulsedOp + 'static, Global>> for PulsedModel
fn is_source(op: &Box<dyn PulsedOp>) -> bool
fn create_source(&self, fact: PulsedFact) -> Box<dyn PulsedOp>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn create_dummy(&self) -> Box<dyn PulsedOp>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn wire_node(
&mut self,
name: impl Into<String>,
op: impl Into<Box<dyn PulsedOp>>,
inputs: &[OutletId]
) -> TractResult<TVec<OutletId>>
impl Eq for PulsedFact
impl StructuralEq for PulsedFact
impl StructuralPartialEq for PulsedFact
Auto Trait Implementations
impl RefUnwindSafe for PulsedFact
impl Send for PulsedFact
impl Sync for PulsedFact
impl Unpin for PulsedFact
impl UnwindSafe for PulsedFact
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
sourcefn 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. Read more
sourcefn 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. Read more