pub struct VariableProfileTableBuilder { /* private fields */ }
Expand description
Builder for VariableProfileTable
.
Implementations§
Source§impl VariableProfileTableBuilder
impl VariableProfileTableBuilder
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Create a builder.
let vpt_builder = VariableProfileTableBuilder::new()?;
Sourcepub fn add_input<T>(&mut self, name: &str, dims: &[usize]) -> Result<(), Error>where
T: Dtype,
pub fn add_input<T>(&mut self, name: &str, dims: &[usize]) -> Result<(), Error>where
T: Dtype,
Register a variable as input.
vpt_builder.add_input::<f32>("input", &[2, 3])?;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariableProfileTableBuilder
impl RefUnwindSafe for VariableProfileTableBuilder
impl !Send for VariableProfileTableBuilder
impl !Sync for VariableProfileTableBuilder
impl Unpin for VariableProfileTableBuilder
impl UnwindSafe for VariableProfileTableBuilder
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