Struct CompletionContext

Source
pub struct CompletionContext {
Show 22 fields pub all_types: bool, pub all_values: bool, pub class_type_values: bool, pub dot_members: bool, pub arrow_members: bool, pub enum_tags: bool, pub union_tags: bool, pub struct_tags: bool, pub class_names: bool, pub namespaces: bool, pub nested_name_specifiers: bool, pub macro_names: bool, pub natural_language: bool, pub objc_object_values: bool, pub objc_selector_values: bool, pub objc_property_members: bool, pub objc_interfaces: bool, pub objc_protocols: bool, pub objc_categories: bool, pub objc_instance_messages: bool, pub objc_class_messages: bool, pub objc_selector_names: bool,
}
Expand description

Indicates which types of results were included in a set of code completion results.

Fields§

§all_types: bool

Indicates whether all possible types were included.

§all_values: bool

Indicates whether all possible values were included.

§class_type_values: bool

Indicates whether values that resolve to C++ class types were included.

§dot_members: bool

Indicates whether the members of a record that are accessed with the dot operator were included.

§arrow_members: bool

Indicates whether the members of a record that are accessed with the arrow operator were included.

§enum_tags: bool

Indicates whether enum tags were included.

§union_tags: bool

Indicates whether union tags were included.

§struct_tags: bool

Indicates whether struct tags were included.

§class_names: bool

Indicates whether C++ class names were included.

§namespaces: bool

Indicates whether C++ namespaces and namespace aliases were included.

§nested_name_specifiers: bool

Indicates whether C++ nested name specifiers were included.

§macro_names: bool

Indicates whether macro names were included.

§natural_language: bool

Indicates whether natural language results were included.

§objc_object_values: bool

Indicates whether values that resolve to Objective-C objects were included.

§objc_selector_values: bool

Indicates whether values that resolve to Objective-C selectors were included.

§objc_property_members: bool

Indicates whether the properties of an Objective-C object that are accessed with the dot operator were included.

§objc_interfaces: bool

Indicates whether Objective-C interfaces were included.

§objc_protocols: bool

Indicates whether Objective-C protocols were included.

§objc_categories: bool

Indicates whether Objective-C categories were included.

§objc_instance_messages: bool

Indicates whether Objective-C instance messages were included.

§objc_class_messages: bool

Indicates whether Objective-C class messages were included.

§objc_selector_names: bool

Indicates whether Objective-C selector names were included.

Trait Implementations§

Source§

impl Clone for CompletionContext

Source§

fn clone(&self) -> CompletionContext

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 CompletionContext

Source§

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

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

impl From<CompletionContext> for CXCompletionContext

Source§

fn from(options: CompletionContext) -> CXCompletionContext

Converts to this type from the input type.
Source§

impl From<i32> for CompletionContext

Source§

fn from(flags: CXCompletionContext) -> CompletionContext

Converts to this type from the input type.
Source§

impl Hash for CompletionContext

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CompletionContext

Source§

fn eq(&self, other: &CompletionContext) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for CompletionContext

Source§

impl Eq for CompletionContext

Source§

impl StructuralPartialEq for CompletionContext

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.