pub struct DxcCursor { /* private fields */ }

Implementations§

source§

impl DxcCursor

source

pub fn get_children(&self, skip: u32, max_count: u32) -> Result<Vec<DxcCursor>>

source

pub fn get_all_children(&self) -> Result<Vec<DxcCursor>>

source

pub fn get_extent(&self) -> Result<DxcSourceRange>

source

pub fn get_location(&self) -> Result<DxcSourceLocation>

source

pub fn get_display_name(&self) -> Result<String>

source

pub fn get_formatted_name( &self, formatting: DxcCursorFormatting ) -> Result<String>

source

pub fn get_qualified_name(&self, include_template_args: bool) -> Result<String>

source

pub fn get_kind(&self) -> Result<DxcCursorKind>

source

pub fn get_kind_flags(&self) -> Result<DxcCursorKindFlags>

source

pub fn get_semantic_parent(&self) -> Result<DxcCursor>

source

pub fn get_lexical_parent(&self) -> Result<DxcCursor>

source

pub fn get_cursor_type(&self) -> Result<DxcType>

source

pub fn get_num_arguments(&self) -> Result<i32>

source

pub fn get_argument_at(&self, index: i32) -> Result<DxcCursor>

source

pub fn get_referenced_cursor(&self) -> Result<DxcCursor>

source

pub fn get_definition_cursor(&self) -> Result<DxcCursor>

source

pub fn find_references_in_file( &self, file: &DxcFile, skip: u32, top: u32 ) -> Result<Vec<DxcCursor>>

source

pub fn get_spelling(&self) -> Result<String>

source

pub fn is_equal_to(&self, other: &DxcCursor) -> Result<bool>

source

pub fn is_null(&mut self) -> Result<bool>

source

pub fn is_definition(&self) -> Result<bool>

source

pub fn get_snapped_child( &self, location: &DxcSourceLocation ) -> Result<DxcCursor>

source

pub fn get_source<'a>(&self, source: &'a str) -> Result<&'a str>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.