Struct glean_core::metrics::StringMetric [−][src]
pub struct StringMetric { /* fields omitted */ }
Expand description
A string metric.
Record an Unicode string value with arbitrary content.
Strings are length-limited to MAX_LENGTH_VALUE
bytes.
Implementations
impl StringMetric
[src]
impl StringMetric
[src]Trait Implementations
impl Clone for StringMetric
[src]
impl Clone for StringMetric
[src]fn clone(&self) -> StringMetric
[src]
fn clone(&self) -> StringMetric
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StringMetric
[src]
impl Debug for StringMetric
[src]impl MetricType for StringMetric
[src]
impl MetricType for StringMetric
[src]fn meta(&self) -> &CommonMetricData
[src]
fn meta(&self) -> &CommonMetricData
[src]Access the stored metadata
fn meta_mut(&mut self) -> &mut CommonMetricData
[src]
fn meta_mut(&mut self) -> &mut CommonMetricData
[src]Access the stored metadata mutable
fn should_record(&self, glean: &Glean) -> bool
[src]
fn should_record(&self, glean: &Glean) -> bool
[src]Whether this metric should currently be recorded Read more
Auto Trait Implementations
impl RefUnwindSafe for StringMetric
impl Send for StringMetric
impl Sync for StringMetric
impl Unpin for StringMetric
impl UnwindSafe for StringMetric
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more