pub struct TensorBuilder<'a: 'b, 'b, A: Allocator + 'a> {
fbb_: &'b mut FlatBufferBuilder<'a, A>,
start_: WIPOffset<TableUnfinishedWIPOffset>,
}
Fields§
§fbb_: &'b mut FlatBufferBuilder<'a, A>
§start_: WIPOffset<TableUnfinishedWIPOffset>
Implementations§
Source§impl<'a: 'b, 'b, A: Allocator + 'a> TensorBuilder<'a, 'b, A>
impl<'a: 'b, 'b, A: Allocator + 'a> TensorBuilder<'a, 'b, A>
pub fn add_type_type(&mut self, type_type: Type)
pub fn add_type_(&mut self, type_: WIPOffset<UnionWIPOffset>)
pub fn add_shape( &mut self, shape: WIPOffset<Vector<'b, ForwardsUOffset<TensorDim<'b>>>>, )
pub fn add_strides(&mut self, strides: WIPOffset<Vector<'b, i64>>)
pub fn add_data(&mut self, data: &Buffer)
pub fn new(_fbb: &'b mut FlatBufferBuilder<'a, A>) -> TensorBuilder<'a, 'b, A>
pub fn finish(self) -> WIPOffset<Tensor<'a>>
Auto Trait Implementations§
impl<'a, 'b, A> Freeze for TensorBuilder<'a, 'b, A>
impl<'a, 'b, A> RefUnwindSafe for TensorBuilder<'a, 'b, A>where
A: RefUnwindSafe,
impl<'a, 'b, A> Send for TensorBuilder<'a, 'b, A>where
A: Send,
impl<'a, 'b, A> Sync for TensorBuilder<'a, 'b, A>where
A: Sync,
impl<'a, 'b, A> Unpin for TensorBuilder<'a, 'b, A>
impl<'a, 'b, A> !UnwindSafe for TensorBuilder<'a, 'b, A>
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