pub struct Name {
pub parts: Box<[Box<str>]>,
pub kind: NameKind,
pub span: Span,
}Expand description
A possibly qualified PHP name.
Fields§
§parts: Box<[Box<str>]>Name segments split on \.
kind: NameKindQualification style.
span: SpanSource span.
Implementations§
Source§impl Name
impl Name
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Joins all parts with \ and prepends \ if fully qualified; empty for an error name.
Sourcepub fn join_parts(&self) -> String
pub fn join_parts(&self) -> String
Joins all parts with \ without any leading backslash.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
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