Struct aliri_braid_examples::wrapper::UsernameBuf
source · #[repr(transparent)]pub struct UsernameBuf(_);
Expand description
Implementations§
source§impl UsernameBuf
impl UsernameBuf
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new UsernameBuf from a static reference
sourcepub fn into_boxed_ref(self) -> Box<Username>
pub fn into_boxed_ref(self) -> Box<Username>
Converts this UsernameBuf
into a Box<Username>
This will drop any excess capacity.
Methods from Deref<Target = Username>§
Trait Implementations§
source§impl AsRef<Username> for UsernameBuf
impl AsRef<Username> for UsernameBuf
source§impl AsRef<str> for UsernameBuf
impl AsRef<str> for UsernameBuf
source§impl Borrow<Username> for UsernameBuf
impl Borrow<Username> for UsernameBuf
source§impl Borrow<str> for UsernameBuf
impl Borrow<str> for UsernameBuf
source§impl Clone for UsernameBuf
impl Clone for UsernameBuf
source§fn clone(&self) -> UsernameBuf
fn clone(&self) -> UsernameBuf
Returns a copy of the value. Read more
1.0.0 · 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 UsernameBuf
impl Debug for UsernameBuf
source§impl Deref for UsernameBuf
impl Deref for UsernameBuf
source§impl<'de> Deserialize<'de> for UsernameBuf
impl<'de> Deserialize<'de> for UsernameBuf
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UsernameBuf
impl Display for UsernameBuf
source§impl From<&Username> for UsernameBuf
impl From<&Username> for UsernameBuf
source§impl From<&str> for UsernameBuf
impl From<&str> for UsernameBuf
source§impl From<String> for UsernameBuf
impl From<String> for UsernameBuf
source§impl From<UsernameBuf> for Box<Username>
impl From<UsernameBuf> for Box<Username>
source§fn from(r: UsernameBuf) -> Self
fn from(r: UsernameBuf) -> Self
Converts to this type from the input type.
source§impl<'a> From<UsernameBuf> for Cow<'a, Username>
impl<'a> From<UsernameBuf> for Cow<'a, Username>
source§fn from(owned: UsernameBuf) -> Self
fn from(owned: UsernameBuf) -> Self
Converts to this type from the input type.
source§impl From<UsernameBuf> for String
impl From<UsernameBuf> for String
source§fn from(s: UsernameBuf) -> Self
fn from(s: UsernameBuf) -> Self
Converts to this type from the input type.
source§impl FromStr for UsernameBuf
impl FromStr for UsernameBuf
source§impl Hash for UsernameBuf
impl Hash for UsernameBuf
source§impl Ord for UsernameBuf
impl Ord for UsernameBuf
source§impl PartialEq<&Username> for UsernameBuf
impl PartialEq<&Username> for UsernameBuf
source§impl PartialEq<Username> for UsernameBuf
impl PartialEq<Username> for UsernameBuf
source§impl PartialEq<UsernameBuf> for &Username
impl PartialEq<UsernameBuf> for &Username
source§fn eq(&self, other: &UsernameBuf) -> bool
fn eq(&self, other: &UsernameBuf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<UsernameBuf> for Username
impl PartialEq<UsernameBuf> for Username
source§fn eq(&self, other: &UsernameBuf) -> bool
fn eq(&self, other: &UsernameBuf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<UsernameBuf> for UsernameBuf
impl PartialEq<UsernameBuf> for UsernameBuf
source§fn eq(&self, other: &UsernameBuf) -> bool
fn eq(&self, other: &UsernameBuf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UsernameBuf> for UsernameBuf
impl PartialOrd<UsernameBuf> for UsernameBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for UsernameBuf
impl Serialize for UsernameBuf
impl Eq for UsernameBuf
impl StructuralEq for UsernameBuf
impl StructuralPartialEq for UsernameBuf
Auto Trait Implementations§
impl RefUnwindSafe for UsernameBuf
impl Send for UsernameBuf
impl Sync for UsernameBuf
impl Unpin for UsernameBuf
impl UnwindSafe for UsernameBuf
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
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more