Struct clang::ThreadOptions [] [src]

pub struct ThreadOptions {
    pub editing: bool,
    pub indexing: bool,
}

A set of options that determines which types of threads should use background priority.

Fields

editing: bool

Indicates whether threads creating for editing purposes should use background priority.

indexing: bool

Indicates whether threads creating for indexing purposes should use background priority.

Trait Implementations

impl Default for ThreadOptions
[src]

fn default() -> ThreadOptions

Returns the "default value" for a type. Read more

impl Hash for ThreadOptions
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

impl Eq for ThreadOptions
[src]

impl PartialEq for ThreadOptions
[src]

fn eq(&self, __arg_0: &ThreadOptions) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ThreadOptions) -> bool

This method tests for !=.

impl Debug for ThreadOptions
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ThreadOptions
[src]

fn clone(&self) -> ThreadOptions

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for ThreadOptions
[src]

impl From<CXGlobalOptFlags> for ThreadOptions
[src]

fn from(flags: CXGlobalOptFlags) -> ThreadOptions

Performs the conversion.

impl Into<CXGlobalOptFlags> for ThreadOptions
[src]

fn into(self) -> CXGlobalOptFlags

Performs the conversion.