Enum tract_nnef::deser::Value [−][src]
Variants
Wire(OutletId)
String(String)
Bool(bool)
Scalar(f32)
Dim(TDim)
Implementations
impl Value
[src]
pub fn to<T>(&self, builder: &mut ModelBuilder<'_>) -> TractResult<T> where
T: CoerceFrom<Value>,
[src]
T: CoerceFrom<Value>,
Trait Implementations
impl Clone for Value
[src]
impl CoerceFrom<Value> for Value
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for Arc<Tensor>
[src]
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl<D: CoerceFrom<Value>> CoerceFrom<Value> for TVec<D>
[src]
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl<D1, D2> CoerceFrom<Value> for (D1, D2) where
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
[src]
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl<D1, D2, D3> CoerceFrom<Value> for (D1, D2, D3) where
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
D3: CoerceFrom<Value>,
[src]
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
D3: CoerceFrom<Value>,
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl<D1, D2, D3, D4> CoerceFrom<Value> for (D1, D2, D3, D4) where
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
D3: CoerceFrom<Value>,
D4: CoerceFrom<Value>,
[src]
D1: CoerceFrom<Value>,
D2: CoerceFrom<Value>,
D3: CoerceFrom<Value>,
D4: CoerceFrom<Value>,
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for OutletId
[src]
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for i64
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for TDim
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for String
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for bool
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for usize
[src]
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for isize
[src]
fn coerce(builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl CoerceFrom<Value> for f32
[src]
fn coerce(_builder: &mut ModelBuilder<'_>, from: &Value) -> TractResult<Self>
[src]
impl Debug for Value
[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> Downcast for T where
T: Any,
T: Any,
pub 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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,