hassle_rs::intellisense

Struct DxcCursor

Source
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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.