pub struct AnnotationLimits { /* private fields */ }Expand description
Caller-visible annotation storage and text bounds.
Implementations§
Source§impl AnnotationLimits
impl AnnotationLimits
pub fn new( max_annotations: usize, max_note_bytes: usize, max_source_series: usize, ) -> Result<Self, AnnotationError>
pub fn max_annotations(self) -> usize
pub fn max_note_bytes(self) -> usize
pub fn max_source_series(self) -> usize
Trait Implementations§
Source§impl Clone for AnnotationLimits
impl Clone for AnnotationLimits
impl Copy for AnnotationLimits
Source§impl Debug for AnnotationLimits
impl Debug for AnnotationLimits
Source§impl Default for AnnotationLimits
impl Default for AnnotationLimits
impl Eq for AnnotationLimits
Source§impl PartialEq for AnnotationLimits
impl PartialEq for AnnotationLimits
impl StructuralPartialEq for AnnotationLimits
Auto Trait Implementations§
impl Freeze for AnnotationLimits
impl RefUnwindSafe for AnnotationLimits
impl Send for AnnotationLimits
impl Sync for AnnotationLimits
impl Unpin for AnnotationLimits
impl UnsafeUnpin for AnnotationLimits
impl UnwindSafe for AnnotationLimits
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.