pub enum FormatSpecificKind {}Expand description
Format-specific node kinds (namespaced)
Implementations§
Source§impl FormatSpecificKind
impl FormatSpecificKind
Sourcepub const fn format(self) -> FormatKind
pub const fn format(self) -> FormatKind
Get the format this kind belongs to
Sourcepub const fn predicate_name(self) -> &'static str
pub const fn predicate_name(self) -> &'static str
Get the predicate name (for query syntax)
Sourcepub const fn is_reference(self) -> bool
pub const fn is_reference(self) -> bool
Check if this is a reference kind
Sourcepub const fn is_definition(self) -> bool
pub const fn is_definition(self) -> bool
Check if this is a definition kind
Sourcepub fn from_namespaced(format: &str, predicate: &str) -> Option<Self>
pub fn from_namespaced(format: &str, predicate: &str) -> Option<Self>
Parse from format:predicate string
Trait Implementations§
Source§impl Clone for FormatSpecificKind
impl Clone for FormatSpecificKind
Source§fn clone(&self) -> FormatSpecificKind
fn clone(&self) -> FormatSpecificKind
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 FormatSpecificKind
impl Debug for FormatSpecificKind
Source§impl Hash for FormatSpecificKind
impl Hash for FormatSpecificKind
Source§impl PartialEq for FormatSpecificKind
impl PartialEq for FormatSpecificKind
impl Copy for FormatSpecificKind
impl Eq for FormatSpecificKind
impl StructuralPartialEq for FormatSpecificKind
Auto Trait Implementations§
impl Freeze for FormatSpecificKind
impl RefUnwindSafe for FormatSpecificKind
impl Send for FormatSpecificKind
impl Sync for FormatSpecificKind
impl Unpin for FormatSpecificKind
impl UnwindSafe for FormatSpecificKind
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