/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
use serde::{Deserialize, Serialize};
/// A flow ID for connecting profiler markers across time. /// /// Analogous to the C++ `Flow` class in `mozglue/baseprofiler/public/Flow.h`. #[derive(Serialize, Deserialize, Debug, Clone, Copy)] pubstruct FlowId(u64);
impl<T> From<*const T> for FlowId { fn from(ptr: *const T) -> Self {
FlowId(ptr as usize as u64)
}
}
impl<T> From<*mut T> for FlowId { fn from(ptr: *mut T) -> Self {
FlowId(ptr as usize as u64)
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.