pub struct ViewBuilder { /* private fields */ }Expand description
View builder for ergonomic API
Implementations§
Source§impl ViewBuilder
impl ViewBuilder
Sourcepub fn with_strides(self, strides: Vec<isize>) -> Self
pub fn with_strides(self, strides: Vec<isize>) -> Self
Set strides
Sourcepub fn with_offset(self, offset: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
Set offset
Sourcepub fn build(self) -> TensorView
pub fn build(self) -> TensorView
Build the tensor view
Auto Trait Implementations§
impl Freeze for ViewBuilder
impl RefUnwindSafe for ViewBuilder
impl Send for ViewBuilder
impl Sync for ViewBuilder
impl Unpin for ViewBuilder
impl UnwindSafe for ViewBuilder
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