Struct google_cloud_bigquery::storage::util::bit_chunk_iterator::BitChunks
pub struct BitChunks<'a> { /* private fields */ }Expand description
Iterates over an arbitrarily aligned byte buffer
Yields an iterator of u64, and a remainder. The first byte in the buffer will be the least significant byte in output u64
Implementations§
§impl<'a> BitChunks<'a>
impl<'a> BitChunks<'a>
pub const fn remainder_len(&self) -> usize
pub const fn remainder_len(&self) -> usize
Returns the number of remaining bits, guaranteed to be between 0 and 63 (inclusive)
pub fn remainder_bits(&self) -> u64
pub fn remainder_bits(&self) -> u64
Returns the bitmask of remaining bits
pub const fn iter(&self) -> BitChunkIterator<'a> ⓘ
pub const fn iter(&self) -> BitChunkIterator<'a> ⓘ
Returns an iterator over chunks of 64 bits represented as an u64
pub fn iter_padded(&self) -> impl Iterator<Item = u64> + 'a
pub fn iter_padded(&self) -> impl Iterator<Item = u64> + 'a
Returns an iterator over chunks of 64 bits, with the remaining bits zero padded to 64-bits
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BitChunks<'a>
impl<'a> Send for BitChunks<'a>
impl<'a> Sync for BitChunks<'a>
impl<'a> Unpin for BitChunks<'a>
impl<'a> UnwindSafe for BitChunks<'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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request