pub struct Function {
pub name: Symbol,
pub line: u32,
pub column: u32,
pub summary: FunctionSummary,
}
Expand description
Coverage information about a function.
Fields§
§name: Symbol
Name of the function.
line: u32
The line number where this function is defined. Zero if missing.
column: u32
The column number where this function is defined. Zero if missing.
summary: FunctionSummary
Summary about this function.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl SerializeWithInterner for Function
impl SerializeWithInterner for Function
Source§fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
interner: &Interner,
) -> Result<S::Ok, S::Error>
fn serialize_with_interner<S: Serializer>( &self, serializer: S, interner: &Interner, ) -> Result<S::Ok, S::Error>
Source§fn with_interner<'si>(
&self,
interner: &'si Interner,
) -> WithInterner<'si, &Self>
fn with_interner<'si>( &self, interner: &'si Interner, ) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more
impl Copy for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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