pub struct ChunkMetadata {
pub language: Language,
pub complexity: usize,
pub token_count: usize,
pub line_count: usize,
pub has_tests: bool,
pub has_docs: bool,
pub visibility: Visibility,
pub dependencies: Vec<String>,
pub symbols_defined: Vec<String>,
pub symbols_used: Vec<String>,
}
Expand description
Metadata for a code chunk
Fields§
§language: Language
§complexity: usize
§token_count: usize
§line_count: usize
§has_tests: bool
§has_docs: bool
§visibility: Visibility
§dependencies: Vec<String>
§symbols_defined: Vec<String>
§symbols_used: Vec<String>
Trait Implementations§
Source§impl Clone for ChunkMetadata
impl Clone for ChunkMetadata
Source§fn clone(&self) -> ChunkMetadata
fn clone(&self) -> ChunkMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ChunkMetadata
impl Debug for ChunkMetadata
Source§impl<'de> Deserialize<'de> for ChunkMetadata
impl<'de> Deserialize<'de> for ChunkMetadata
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
Auto Trait Implementations§
impl Freeze for ChunkMetadata
impl RefUnwindSafe for ChunkMetadata
impl Send for ChunkMetadata
impl Sync for ChunkMetadata
impl Unpin for ChunkMetadata
impl UnwindSafe for ChunkMetadata
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