Enum clang::EvaluationResult
source · [−]pub enum EvaluationResult {
Unexposed,
SignedInteger(i64),
UnsignedInteger(u64),
Float(f64),
String(CString),
ObjCString(CString),
CFString(CString),
Other(CString),
}
Expand description
The result of evaluating an expression.
Variants
Unexposed
An evaluation result whose specific type is not exposed via this interface.
SignedInteger(i64)
A signed integer evaluation result.
UnsignedInteger(u64)
An unsigned integer evaluation result.
Only produced by libclang
4.0 and later. Earlier versions will always return
SignedInteger
for integers.
Float(f64)
A floating point number evaluation result.
String(CString)
A string literal evaluation result.
ObjCString(CString)
An Objective-C string literal evaluation result.
CFString(CString)
An Objective-C CFString
evaluation result.
Other(CString)
Any other evaluation result whose value can be represented by a string.
Trait Implementations
sourceimpl Clone for EvaluationResult
impl Clone for EvaluationResult
sourcefn clone(&self) -> EvaluationResult
fn clone(&self) -> EvaluationResult
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 EvaluationResult
impl Debug for EvaluationResult
sourceimpl PartialEq<EvaluationResult> for EvaluationResult
impl PartialEq<EvaluationResult> for EvaluationResult
sourcefn eq(&self, other: &EvaluationResult) -> bool
fn eq(&self, other: &EvaluationResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EvaluationResult) -> bool
fn ne(&self, other: &EvaluationResult) -> bool
This method tests for !=
.
impl StructuralPartialEq for EvaluationResult
Auto Trait Implementations
impl RefUnwindSafe for EvaluationResult
impl Send for EvaluationResult
impl Sync for EvaluationResult
impl Unpin for EvaluationResult
impl UnwindSafe for EvaluationResult
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