pub struct FrameDiagnostic {
pub name: Cow<'static, str>,
pub area: Option<Rect>,
pub elapsed: Duration,
}Fields§
§name: Cow<'static, str>§area: Option<Rect>§elapsed: DurationImplementations§
Source§impl FrameDiagnostic
impl FrameDiagnostic
pub fn static_name( name: &'static str, area: Option<Rect>, elapsed: Duration, ) -> FrameDiagnostic
pub fn owned_name( name: impl Into<String>, area: Option<Rect>, elapsed: Duration, ) -> FrameDiagnostic
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for FrameDiagnostic
impl Clone for FrameDiagnostic
Source§fn clone(&self) -> FrameDiagnostic
fn clone(&self) -> FrameDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameDiagnostic
impl Debug for FrameDiagnostic
impl Eq for FrameDiagnostic
Source§impl PartialEq for FrameDiagnostic
impl PartialEq for FrameDiagnostic
Source§fn eq(&self, other: &FrameDiagnostic) -> bool
fn eq(&self, other: &FrameDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrameDiagnostic
Auto Trait Implementations§
impl Freeze for FrameDiagnostic
impl RefUnwindSafe for FrameDiagnostic
impl Send for FrameDiagnostic
impl Sync for FrameDiagnostic
impl Unpin for FrameDiagnostic
impl UnsafeUnpin for FrameDiagnostic
impl UnwindSafe for FrameDiagnostic
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