pub struct UnitReader<P: ReducePrecision> { /* private fields */ }Implementations§
Source§impl<P: ReducePrecision> UnitReader<P>
impl<P: ReducePrecision> UnitReader<P>
pub fn new(reader: Reader<P>) -> UnitReader<P>
pub fn read(&self, vector_index: usize) -> Item<P>
pub fn length(&self) -> usize
pub fn __expand_new( scope: &mut Scope, reader: <Reader<P> as RudaType>::ExpandType, ) -> <UnitReader<P> as RudaType>::ExpandType
pub fn __expand_read( scope: &mut Scope, this: <Self as RudaType>::ExpandType, vector_index: <usize as RudaType>::ExpandType, ) -> <Item<P> as RudaType>::ExpandType
pub fn __expand_length( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
Trait Implementations§
Source§impl<P: ReducePrecision> RudaType for UnitReader<P>
impl<P: ReducePrecision> RudaType for UnitReader<P>
type ExpandType = UnitReaderExpand<P>
Auto Trait Implementations§
impl<P> Freeze for UnitReader<P>
impl<P> RefUnwindSafe for UnitReader<P>where
Reader<P>: RefUnwindSafe,
impl<P> Send for UnitReader<P>
impl<P> Sync for UnitReader<P>
impl<P> Unpin for UnitReader<P>
impl<P> UnsafeUnpin for UnitReader<P>where
Reader<P>: UnsafeUnpin,
impl<P> UnwindSafe for UnitReader<P>where
Reader<P>: UnwindSafe,
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