pub enum FragmentKind {
Show 22 variants
Function,
Class,
Struct,
Impl,
Interface,
Enum,
Module,
Type,
Variable,
Record,
Property,
Declaration,
Definition,
Section,
Chunk,
Excerpt,
FunctionSignature,
ClassSignature,
MethodSignature,
StructSignature,
InterfaceSignature,
EnumSignature,
}Variants§
Function
Class
Struct
Impl
Interface
Enum
Module
Type
Variable
Record
Property
Declaration
Definition
Section
Chunk
Excerpt
FunctionSignature
ClassSignature
MethodSignature
StructSignature
InterfaceSignature
EnumSignature
Implementations§
Source§impl FragmentKind
impl FragmentKind
pub fn from_str(s: &str) -> Self
pub fn as_str(&self) -> &'static str
pub fn is_semantic(&self) -> bool
pub fn is_container(&self) -> bool
pub fn is_signature(&self) -> bool
Trait Implementations§
Source§impl Clone for FragmentKind
impl Clone for FragmentKind
Source§fn clone(&self) -> FragmentKind
fn clone(&self) -> FragmentKind
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 FragmentKind
Source§impl Debug for FragmentKind
impl Debug for FragmentKind
Source§impl Display for FragmentKind
impl Display for FragmentKind
impl Eq for FragmentKind
Source§impl Hash for FragmentKind
impl Hash for FragmentKind
Source§impl PartialEq for FragmentKind
impl PartialEq for FragmentKind
impl StructuralPartialEq for FragmentKind
Auto Trait Implementations§
impl Freeze for FragmentKind
impl RefUnwindSafe for FragmentKind
impl Send for FragmentKind
impl Sync for FragmentKind
impl Unpin for FragmentKind
impl UnsafeUnpin for FragmentKind
impl UnwindSafe for FragmentKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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