AttrSliceType

Trait AttrSliceType 

Source
pub trait AttrSliceType<'a>: 'a + Sized {
    // Required method
    fn get_attr_opt_slice(
        node: &'a NodeProto,
        name: &str,
    ) -> TractResult<Option<&'a [Self]>>;
}

Required Methods§

Source

fn get_attr_opt_slice( node: &'a NodeProto, name: &str, ) -> TractResult<Option<&'a [Self]>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> AttrSliceType<'a> for f32

Source§

fn get_attr_opt_slice( node: &'a NodeProto, name: &str, ) -> TractResult<Option<&'a [Self]>>

Source§

impl<'a> AttrSliceType<'a> for i64

Source§

fn get_attr_opt_slice( node: &'a NodeProto, name: &str, ) -> TractResult<Option<&'a [Self]>>

Implementors§

Source§

impl<'a> AttrSliceType<'a> for Vec<u8>