pub enum Quantization {
Scalar(ScalarQuantization),
Product(ProductQuantization),
Disabled(Disabled),
Binary(BinaryQuantization),
}
Variants§
Scalar(ScalarQuantization)
Product(ProductQuantization)
Disabled(Disabled)
Binary(BinaryQuantization)
Implementations§
source§impl Quantization
impl Quantization
sourcepub fn merge(
field: &mut Option<Quantization>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Quantization>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for Quantization
impl Clone for Quantization
source§fn clone(&self) -> Quantization
fn clone(&self) -> Quantization
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Quantization
impl Debug for Quantization
source§impl From<BinaryQuantization> for Quantization
impl From<BinaryQuantization> for Quantization
source§fn from(value: BinaryQuantization) -> Self
fn from(value: BinaryQuantization) -> Self
Converts to this type from the input type.
source§impl From<BinaryQuantizationBuilder> for Quantization
impl From<BinaryQuantizationBuilder> for Quantization
source§fn from(value: BinaryQuantizationBuilder) -> Self
fn from(value: BinaryQuantizationBuilder) -> Self
Converts to this type from the input type.
source§impl From<Disabled> for Quantization
impl From<Disabled> for Quantization
source§impl From<ProductQuantization> for Quantization
impl From<ProductQuantization> for Quantization
source§fn from(value: ProductQuantization) -> Self
fn from(value: ProductQuantization) -> Self
Converts to this type from the input type.
source§impl From<ProductQuantizationBuilder> for Quantization
impl From<ProductQuantizationBuilder> for Quantization
source§fn from(value: ProductQuantizationBuilder) -> Self
fn from(value: ProductQuantizationBuilder) -> Self
Converts to this type from the input type.
source§impl From<Quantization> for QuantizationConfigDiff
impl From<Quantization> for QuantizationConfigDiff
source§fn from(value: Quantization) -> Self
fn from(value: Quantization) -> Self
Converts to this type from the input type.
source§impl From<ScalarQuantization> for Quantization
impl From<ScalarQuantization> for Quantization
source§fn from(value: ScalarQuantization) -> Self
fn from(value: ScalarQuantization) -> Self
Converts to this type from the input type.
source§impl From<ScalarQuantizationBuilder> for Quantization
impl From<ScalarQuantizationBuilder> for Quantization
source§fn from(value: ScalarQuantizationBuilder) -> Self
fn from(value: ScalarQuantizationBuilder) -> Self
Converts to this type from the input type.
source§impl PartialEq for Quantization
impl PartialEq for Quantization
impl Copy for Quantization
impl StructuralPartialEq for Quantization
Auto Trait Implementations§
impl Freeze for Quantization
impl RefUnwindSafe for Quantization
impl Send for Quantization
impl Sync for Quantization
impl Unpin for Quantization
impl UnwindSafe for Quantization
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> 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