pub struct Usr(pub String);
Expand description
A Unified Symbol Resolution (USR).
A USR identifies an AST entity and can be used to compare AST entities from different translation units.
Tuple Fields
0: String
Implementations
sourceimpl Usr
impl Usr
sourcepub fn from_objc_category<C: AsRef<str>>(class: C, category: C) -> Usr
pub fn from_objc_category<C: AsRef<str>>(class: C, category: C) -> Usr
Constructs a new Usr
from an Objective-C category.
sourcepub fn from_objc_class<C: AsRef<str>>(class: C) -> Usr
pub fn from_objc_class<C: AsRef<str>>(class: C) -> Usr
Constructs a new Usr
from an Objective-C class.
sourcepub fn from_objc_ivar<N: AsRef<str>>(class: &Usr, name: N) -> Usr
pub fn from_objc_ivar<N: AsRef<str>>(class: &Usr, name: N) -> Usr
Constructs a new Usr
from an Objective-C instance variable.
sourcepub fn from_objc_method<N: AsRef<str>>(
class: &Usr,
name: N,
instance: bool
) -> Usr
pub fn from_objc_method<N: AsRef<str>>(
class: &Usr,
name: N,
instance: bool
) -> Usr
Constructs a new Usr
from an Objective-C method.
sourcepub fn from_objc_property<N: AsRef<str>>(class: &Usr, name: N) -> Usr
pub fn from_objc_property<N: AsRef<str>>(class: &Usr, name: N) -> Usr
Constructs a new Usr
from an Objective-C property.
sourcepub fn from_objc_protocol<P: AsRef<str>>(protocol: P) -> Usr
pub fn from_objc_protocol<P: AsRef<str>>(protocol: P) -> Usr
Constructs a new Usr
from an Objective-C protocol.
Trait Implementations
sourceimpl Ord for Usr
impl Ord for Usr
sourceimpl PartialOrd<Usr> for Usr
impl PartialOrd<Usr> for Usr
sourcefn partial_cmp(&self, other: &Usr) -> Option<Ordering>
fn partial_cmp(&self, other: &Usr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Usr
impl StructuralEq for Usr
impl StructuralPartialEq for Usr
Auto Trait Implementations
impl RefUnwindSafe for Usr
impl Send for Usr
impl Sync for Usr
impl Unpin for Usr
impl UnwindSafe for Usr
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