Struct clang::completion::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.
Indicates whether enum tags were included.
Indicates whether union tags were included.
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
sourceimpl Clone for CompletionContext
impl Clone for CompletionContext
sourcefn clone(&self) -> CompletionContext
fn clone(&self) -> CompletionContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompletionContext
impl Debug for CompletionContext
sourceimpl From<CompletionContext> for CXCompletionContext
impl From<CompletionContext> for CXCompletionContext
sourcefn from(options: CompletionContext) -> CXCompletionContext
fn from(options: CompletionContext) -> CXCompletionContext
Converts to this type from the input type.
sourceimpl From<i32> for CompletionContext
impl From<i32> for CompletionContext
sourcefn from(flags: CXCompletionContext) -> CompletionContext
fn from(flags: CXCompletionContext) -> CompletionContext
Converts to this type from the input type.
sourceimpl Hash for CompletionContext
impl Hash for CompletionContext
sourceimpl PartialEq<CompletionContext> for CompletionContext
impl PartialEq<CompletionContext> for CompletionContext
sourcefn eq(&self, other: &CompletionContext) -> bool
fn eq(&self, other: &CompletionContext) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompletionContext) -> bool
fn ne(&self, other: &CompletionContext) -> bool
This method tests for !=
.
impl Copy for CompletionContext
impl Eq for CompletionContext
impl StructuralEq for CompletionContext
impl StructuralPartialEq for CompletionContext
Auto Trait Implementations
impl RefUnwindSafe for CompletionContext
impl Send for CompletionContext
impl Sync for CompletionContext
impl Unpin for CompletionContext
impl UnwindSafe for CompletionContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more