pub struct GoUnexportedIdentifier(/* private fields */);Expand description
Validated unexported ASCII-safe Go identifier.
Implementations§
Source§impl GoUnexportedIdentifier
impl GoUnexportedIdentifier
Sourcepub fn new(value: impl Into<String>) -> Result<Self, GoIdentifierError>
pub fn new(value: impl Into<String>) -> Result<Self, GoIdentifierError>
Creates an unexported Go identifier.
§Errors
Returns GoIdentifierError when value is not a valid ASCII Go identifier or is not unexported.
Sourcepub fn into_identifier(self) -> GoIdentifier
pub fn into_identifier(self) -> GoIdentifier
Consumes the wrapper and returns the general identifier.
Trait Implementations§
Source§impl AsRef<str> for GoUnexportedIdentifier
impl AsRef<str> for GoUnexportedIdentifier
Source§impl Clone for GoUnexportedIdentifier
impl Clone for GoUnexportedIdentifier
Source§fn clone(&self) -> GoUnexportedIdentifier
fn clone(&self) -> GoUnexportedIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoUnexportedIdentifier
impl Debug for GoUnexportedIdentifier
Source§impl Display for GoUnexportedIdentifier
impl Display for GoUnexportedIdentifier
Source§impl FromStr for GoUnexportedIdentifier
impl FromStr for GoUnexportedIdentifier
Source§impl Hash for GoUnexportedIdentifier
impl Hash for GoUnexportedIdentifier
Source§impl Ord for GoUnexportedIdentifier
impl Ord for GoUnexportedIdentifier
Source§fn cmp(&self, other: &GoUnexportedIdentifier) -> Ordering
fn cmp(&self, other: &GoUnexportedIdentifier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GoUnexportedIdentifier
impl PartialEq for GoUnexportedIdentifier
Source§fn eq(&self, other: &GoUnexportedIdentifier) -> bool
fn eq(&self, other: &GoUnexportedIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GoUnexportedIdentifier
impl PartialOrd for GoUnexportedIdentifier
Source§impl TryFrom<&str> for GoUnexportedIdentifier
impl TryFrom<&str> for GoUnexportedIdentifier
impl Eq for GoUnexportedIdentifier
impl StructuralPartialEq for GoUnexportedIdentifier
Auto Trait Implementations§
impl Freeze for GoUnexportedIdentifier
impl RefUnwindSafe for GoUnexportedIdentifier
impl Send for GoUnexportedIdentifier
impl Sync for GoUnexportedIdentifier
impl Unpin for GoUnexportedIdentifier
impl UnsafeUnpin for GoUnexportedIdentifier
impl UnwindSafe for GoUnexportedIdentifier
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