AttrTVecType

Trait AttrTVecType 

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

Required Methods§

Source

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<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> AttrTVecType<'a> for &'a str

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for bool

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for i8

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for i16

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for i32

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for isize

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Source§

impl<'a> AttrTVecType<'a> for usize

Source§

fn get_attr_opt_tvec( node: &'a NodeProto, name: &str, ) -> TractResult<Option<TVec<Self>>>

Implementors§

Source§

impl<'a> AttrTVecType<'a> for String

Source§

impl<'a, T> AttrTVecType<'a> for T
where T: AttrSliceType<'a> + Clone,