pub struct FuncSpace {
pub name: Option<String>,
pub start_line: usize,
pub end_line: usize,
pub kind: SpaceKind,
pub spaces: Vec<FuncSpace>,
pub metrics: CodeMetrics,
pub suppressed: SuppressionScope,
}Expand description
Wire form of crate::spaces::FuncSpace — a recursive metric tree.
Fields§
§name: Option<String>The name of the space (file path or AST-derived identifier).
start_line: usizeThe first line of the space.
end_line: usizeThe last line of the space.
kind: SpaceKindThe space kind.
spaces: Vec<FuncSpace>All nested subspaces.
metrics: CodeMetricsThe metrics of the space.
suppressed: SuppressionScopeIn-source suppression markers applying to the space (elided when empty, matching the compute type’s schema).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FuncSpace
impl<'de> Deserialize<'de> for FuncSpace
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
impl StructuralPartialEq for FuncSpace
Auto Trait Implementations§
impl Freeze for FuncSpace
impl RefUnwindSafe for FuncSpace
impl Send for FuncSpace
impl Sync for FuncSpace
impl Unpin for FuncSpace
impl UnsafeUnpin for FuncSpace
impl UnwindSafe for FuncSpace
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