Struct clang::Usr [−][src]
pub struct Usr(pub String);
A Unified Symbol Resolution (USR).
A USR identifies an AST entity and can be used to compare AST entities from different translation units.
Methods
impl Usr
[src]
impl Usr
pub fn from_objc_category<C: AsRef<str>>(class: C, category: C) -> Usr
[src]
pub fn from_objc_category<C: AsRef<str>>(class: C, category: C) -> Usr
Constructs a new Usr
from an Objective-C category.
pub fn from_objc_class<C: AsRef<str>>(class: C) -> Usr
[src]
pub fn from_objc_class<C: AsRef<str>>(class: C) -> Usr
Constructs a new Usr
from an Objective-C class.
pub fn from_objc_ivar<N: AsRef<str>>(class: &Usr, name: N) -> Usr
[src]
pub fn from_objc_ivar<N: AsRef<str>>(class: &Usr, name: N) -> Usr
Constructs a new Usr
from an Objective-C instance variable.
pub fn from_objc_method<N: AsRef<str>>(
class: &Usr,
name: N,
instance: bool
) -> Usr
[src]
pub fn from_objc_method<N: AsRef<str>>(
class: &Usr,
name: N,
instance: bool
) -> Usr
Constructs a new Usr
from an Objective-C method.
pub fn from_objc_property<N: AsRef<str>>(class: &Usr, name: N) -> Usr
[src]
pub fn from_objc_property<N: AsRef<str>>(class: &Usr, name: N) -> Usr
Constructs a new Usr
from an Objective-C property.
pub fn from_objc_protocol<P: AsRef<str>>(protocol: P) -> Usr
[src]
pub fn from_objc_protocol<P: AsRef<str>>(protocol: P) -> Usr
Constructs a new Usr
from an Objective-C protocol.
Trait Implementations
impl Clone for Usr
[src]
impl Clone for Usr
fn clone(&self) -> Usr
[src]
fn clone(&self) -> Usr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Usr
[src]
impl Debug for Usr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Usr
[src]
impl PartialEq for Usr
fn eq(&self, other: &Usr) -> bool
[src]
fn eq(&self, other: &Usr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Usr) -> bool
[src]
fn ne(&self, other: &Usr) -> bool
This method tests for !=
.
impl Eq for Usr
[src]
impl Eq for Usr
impl PartialOrd for Usr
[src]
impl PartialOrd for Usr
fn partial_cmp(&self, other: &Usr) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Usr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Usr) -> bool
[src]
fn lt(&self, other: &Usr) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Usr) -> bool
[src]
fn le(&self, other: &Usr) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Usr) -> bool
[src]
fn gt(&self, other: &Usr) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Usr) -> bool
[src]
fn ge(&self, other: &Usr) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Usr
[src]
impl Ord for Usr
fn cmp(&self, other: &Usr) -> Ordering
[src]
fn cmp(&self, other: &Usr) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Usr
[src]
impl Hash for Usr