Struct IonName
pub struct IonName(/* private fields */);Expand description
A validated ion name.
Implementations§
§impl IonName
impl IonName
pub fn new(name: &str) -> Result<IonName, IonValidationError>
pub fn new(name: &str) -> Result<IonName, IonValidationError>
Creates an ion name.
§Errors
Returns IonValidationError::EmptyName when name is empty after trimming.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned text.
Trait Implementations§
§impl Ord for IonName
impl Ord for IonName
§impl PartialOrd for IonName
impl PartialOrd for IonName
impl Eq for IonName
impl StructuralPartialEq for IonName
Auto Trait Implementations§
impl Freeze for IonName
impl RefUnwindSafe for IonName
impl Send for IonName
impl Sync for IonName
impl Unpin for IonName
impl UnsafeUnpin for IonName
impl UnwindSafe for IonName
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