pub struct LogQuantization {
pub cfg: LogQuantizationConfig,
}Fields§
§cfg: LogQuantizationConfigImplementations§
Source§impl LogQuantization
impl LogQuantization
pub fn new(cfg: LogQuantizationConfig) -> Self
Trait Implementations§
Source§impl Clone for LogQuantization
impl Clone for LogQuantization
Source§fn clone(&self) -> LogQuantization
fn clone(&self) -> LogQuantization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ColumnCodec for LogQuantization
impl ColumnCodec for LogQuantization
fn id(&self) -> CodecId
Source§fn encode_chunk(
&self,
input: &[f32],
_params: &ChannelParams,
out: &mut Vec<u8>,
) -> Result<EncodeStats>
fn encode_chunk( &self, input: &[f32], _params: &ChannelParams, out: &mut Vec<u8>, ) -> Result<EncodeStats>
Encode
input events for one column into out. Returns stats describing
the produced payload. out is appended to, not replaced.Source§fn decode_chunk(
&self,
payload: &[u8],
_params: &ChannelParams,
out: &mut [f32],
) -> Result<()>
fn decode_chunk( &self, payload: &[u8], _params: &ChannelParams, out: &mut [f32], ) -> Result<()>
Decode
payload into out. out.len() MUST equal the original event
count. Implementations should treat out as uninitialized and fully
overwrite every element.Source§impl Debug for LogQuantization
impl Debug for LogQuantization
Source§impl Default for LogQuantization
impl Default for LogQuantization
impl Copy for LogQuantization
Auto Trait Implementations§
impl Freeze for LogQuantization
impl RefUnwindSafe for LogQuantization
impl Send for LogQuantization
impl Sync for LogQuantization
impl Unpin for LogQuantization
impl UnsafeUnpin for LogQuantization
impl UnwindSafe for LogQuantization
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more