SBType

Struct SBType 

Source
pub struct SBType {
    pub raw: SBTypeRef,
}

Fields§

§raw: SBTypeRef

The underlying raw SBTypeRef.

Implementations§

Source§

impl SBType

Source

pub fn is_valid(&self) -> bool

Check whether or not this is a valid SBType value.

Source

pub fn is_pointer_type(&self) -> bool

Source

pub fn is_reference_type(&self) -> bool

Source

pub fn is_function_type(&self) -> bool

Source

pub fn is_polymorphic_class(&self) -> bool

Source

pub fn is_array_type(&self) -> bool

Source

pub fn is_vector_type(&self) -> bool

Source

pub fn is_typedef_type(&self) -> bool

Source

pub fn is_anonymous_type(&self) -> bool

Source

pub fn is_scoped_enumeration_type(&self) -> bool

Source

pub fn pointer_type(&self) -> Option<SBType>

Source

pub fn pointee_type(&self) -> Option<SBType>

Source

pub fn reference_type(&self) -> Option<SBType>

Source

pub fn typedefed_type(&self) -> Option<SBType>

Source

pub fn dereferenced_type(&self) -> Option<SBType>

Source

pub fn unqualified_type(&self) -> Option<SBType>

Source

pub fn array_element_type(&self) -> Option<SBType>

Source

pub fn vector_element_type(&self) -> Option<SBType>

Source

pub fn canonical_type(&self) -> Option<SBType>

Source

pub fn enumeration_integer_type(&self) -> Option<SBType>

Source

pub fn basic_type(&self) -> BasicType

Source

pub fn module(&self) -> Option<SBModule>

Returns the SBModule this type belongs to.

Returns None if this type does not belong to any specific SBModule or this type is invalid. An invalid module might also indicate that once came from a module but LLDB could no longer determine the original module.

Source

pub fn name(&self) -> &str

Source

pub fn display_type_name(&self) -> &str

Source

pub fn type_class(&self) -> TypeClass

Trait Implementations§

Source§

impl Clone for SBType

Source§

fn clone(&self) -> SBType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SBType

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for SBType

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for SBType

Source§

impl Sync for SBType

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.