pub enum SemanticEntryKind {
Dir,
File,
Opaque,
}Expand description
The kind of a SemanticTreeEntry’s target.
Variants§
Dir
A subdirectory — node is a SemanticTreeNode.
File
A parsed source file — node is a SemanticFileNode.
Opaque
Unsupported language, parse failure, or over-budget file. Carries no
semantic node: node and semantic_digest both equal the raw source
blob hash, so a content change to an opaque file still perturbs the
digest chain.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticEntryKind
impl Clone for SemanticEntryKind
Source§fn clone(&self) -> SemanticEntryKind
fn clone(&self) -> SemanticEntryKind
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 moreimpl Copy for SemanticEntryKind
Source§impl Debug for SemanticEntryKind
impl Debug for SemanticEntryKind
Source§impl<'de> Deserialize<'de> for SemanticEntryKind
impl<'de> Deserialize<'de> for SemanticEntryKind
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 Eq for SemanticEntryKind
Source§impl Hash for SemanticEntryKind
impl Hash for SemanticEntryKind
Source§impl PartialEq for SemanticEntryKind
impl PartialEq for SemanticEntryKind
Source§impl Serialize for SemanticEntryKind
impl Serialize for SemanticEntryKind
impl StructuralPartialEq for SemanticEntryKind
Auto Trait Implementations§
impl Freeze for SemanticEntryKind
impl RefUnwindSafe for SemanticEntryKind
impl Send for SemanticEntryKind
impl Sync for SemanticEntryKind
impl Unpin for SemanticEntryKind
impl UnsafeUnpin for SemanticEntryKind
impl UnwindSafe for SemanticEntryKind
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