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§
Source§impl 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§
Source§impl Ord for Usr
impl Ord for Usr
Source§impl PartialOrd for Usr
impl PartialOrd for Usr
impl Eq for Usr
impl StructuralPartialEq for Usr
Auto Trait Implementations§
impl Freeze for Usr
impl RefUnwindSafe for Usr
impl Send for Usr
impl Sync for Usr
impl Unpin for Usr
impl UnwindSafe for Usr
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