pub struct UpscalingRules { /* private fields */ }Implementations§
Source§impl UpscalingRules
impl UpscalingRules
pub fn add( &mut self, values_offset: &[usize], label_name: (&str, StringId), label_value: (&str, StringId), upscaling_info: UpscalingInfo, max_offset: usize, ) -> Result<()>
pub fn get(&self, k: &(StringId, StringId)) -> Option<&Vec<UpscalingRule>>
pub fn is_empty(&self) -> bool
pub fn upscale_values(&self, values: &mut [i64], labels: &[Label]) -> Result<()>
Trait Implementations§
Source§impl Default for UpscalingRules
impl Default for UpscalingRules
Source§fn default() -> UpscalingRules
fn default() -> UpscalingRules
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpscalingRules
impl RefUnwindSafe for UpscalingRules
impl Send for UpscalingRules
impl Sync for UpscalingRules
impl Unpin for UpscalingRules
impl UnwindSafe for UpscalingRules
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