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§
Source§impl Clone for EvaluationResult
impl Clone for EvaluationResult
Source§fn clone(&self) -> EvaluationResult
fn clone(&self) -> EvaluationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EvaluationResult
impl Debug for EvaluationResult
Source§impl PartialEq for EvaluationResult
impl PartialEq for EvaluationResult
impl StructuralPartialEq for EvaluationResult
Auto Trait Implementations§
impl Freeze for EvaluationResult
impl RefUnwindSafe for EvaluationResult
impl Send for EvaluationResult
impl Sync for EvaluationResult
impl Unpin for EvaluationResult
impl UnwindSafe for EvaluationResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more