pub struct Name {
pub position: Position,
/* private fields */
}
Fields§
§position: Position
Implementations§
Source§impl Name
impl Name
pub fn new(name: String, position: Position) -> Result<Self, String>
pub fn to_aliased(&self, alias: String) -> Result<Self, String>
pub fn to_aliased_if_some(&self, alias: Option<String>) -> Result<Self, String>
pub fn get(&self) -> &str
pub fn apply_style(&self, style: WritingStyle, separator: &str) -> String
Trait Implementations§
Source§impl Ord for Name
impl Ord for Name
Source§impl PartialOrd for Name
impl PartialOrd for Name
impl Eq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin 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