#[repr(u8)]pub enum SemanticSourceRole {
Show 16 variants
StructuredAssignmentValue = 0,
EnvironmentAssignmentValue = 1,
StringLiteral = 2,
CommandArgumentValue = 3,
CommandOptionDeclaration = 4,
HeaderValue = 5,
UrlAuthorityUserinfo = 6,
ConnectionString = 7,
StandaloneToken = 8,
PemBlock = 9,
RegexRuleDefinition = 10,
IdentifierTypeMemberName = 11,
ProseDocumentation = 12,
TestFixture = 13,
GeneratedVendorMaterial = 14,
Unknown = 15,
}Expand description
Candidate-bounded semantic classification of the source containing a match.
Variants§
StructuredAssignmentValue = 0
Value of a parsed structured assignment.
EnvironmentAssignmentValue = 1
Value of an environment assignment.
StringLiteral = 2
Literal string value in source code.
CommandArgumentValue = 3
Value passed to a command argument.
CommandOptionDeclaration = 4
Declaration of a command option rather than its runtime value.
HeaderValue = 5
Value of a protocol header.
UrlAuthorityUserinfo = 6
Authority or user-information field of a URL.
ConnectionString = 7
Credential field within a connection string.
StandaloneToken = 8
Standalone opaque token.
PemBlock = 9
Value contained in a PEM block.
RegexRuleDefinition = 10
Regex, scanner rule, or grammar definition.
IdentifierTypeMemberName = 11
Identifier, type, or member name.
ProseDocumentation = 12
Prose or documentation content.
TestFixture = 13
Test or example fixture content.
GeneratedVendorMaterial = 14
Generated or vendored material.
Unknown = 15
Unsupported, ambiguous, or unparsed context; carries no source-role proof.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticSourceRole
impl Clone for SemanticSourceRole
Source§fn clone(&self) -> SemanticSourceRole
fn clone(&self) -> SemanticSourceRole
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 SemanticSourceRole
Source§impl Debug for SemanticSourceRole
impl Debug for SemanticSourceRole
Source§impl<'de> Deserialize<'de> for SemanticSourceRole
impl<'de> Deserialize<'de> for SemanticSourceRole
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 SemanticSourceRole
Source§impl Hash for SemanticSourceRole
impl Hash for SemanticSourceRole
Source§impl Ord for SemanticSourceRole
impl Ord for SemanticSourceRole
Source§fn cmp(&self, other: &SemanticSourceRole) -> Ordering
fn cmp(&self, other: &SemanticSourceRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SemanticSourceRole
impl PartialEq for SemanticSourceRole
Source§impl PartialOrd for SemanticSourceRole
impl PartialOrd for SemanticSourceRole
Source§impl Serialize for SemanticSourceRole
impl Serialize for SemanticSourceRole
impl StructuralPartialEq for SemanticSourceRole
Auto Trait Implementations§
impl Freeze for SemanticSourceRole
impl RefUnwindSafe for SemanticSourceRole
impl Send for SemanticSourceRole
impl Sync for SemanticSourceRole
impl Unpin for SemanticSourceRole
impl UnsafeUnpin for SemanticSourceRole
impl UnwindSafe for SemanticSourceRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more