pub struct WorkspaceNameBuf(/* private fields */);
Expand description
Owned workspace name.
Use .as_str()
or .as_symbol()
for displaying. Other than that, this can
be considered an immutable String
.
Implementations§
Source§impl WorkspaceNameBuf
impl WorkspaceNameBuf
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes this and returns the underlying string.
Methods from Deref<Target = WorkspaceName>§
Trait Implementations§
Source§impl AsRef<WorkspaceName> for WorkspaceNameBuf
impl AsRef<WorkspaceName> for WorkspaceNameBuf
Source§fn as_ref(&self) -> &WorkspaceName
fn as_ref(&self) -> &WorkspaceName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for WorkspaceNameBuf
impl AsRef<str> for WorkspaceNameBuf
Source§impl Borrow<WorkspaceName> for WorkspaceNameBuf
impl Borrow<WorkspaceName> for WorkspaceNameBuf
Source§fn borrow(&self) -> &WorkspaceName
fn borrow(&self) -> &WorkspaceName
Immutably borrows from an owned value. Read more
Source§impl Clone for WorkspaceNameBuf
impl Clone for WorkspaceNameBuf
Source§fn clone(&self) -> WorkspaceNameBuf
fn clone(&self) -> WorkspaceNameBuf
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentHash for WorkspaceNameBuf
impl ContentHash for WorkspaceNameBuf
Source§impl Debug for WorkspaceNameBuf
impl Debug for WorkspaceNameBuf
Source§impl Deref for WorkspaceNameBuf
impl Deref for WorkspaceNameBuf
Source§impl From<&String> for WorkspaceNameBuf
impl From<&String> for WorkspaceNameBuf
Source§impl From<&WorkspaceName> for WorkspaceNameBuf
impl From<&WorkspaceName> for WorkspaceNameBuf
Source§fn from(value: &WorkspaceName) -> Self
fn from(value: &WorkspaceName) -> Self
Converts to this type from the input type.
Source§impl From<&WorkspaceNameBuf> for String
impl From<&WorkspaceNameBuf> for String
Source§fn from(value: &WorkspaceNameBuf) -> Self
fn from(value: &WorkspaceNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&WorkspaceNameBuf> for WorkspaceNameBuf
impl From<&WorkspaceNameBuf> for WorkspaceNameBuf
Source§fn from(value: &WorkspaceNameBuf) -> Self
fn from(value: &WorkspaceNameBuf) -> Self
Converts to this type from the input type.
Source§impl From<&str> for WorkspaceNameBuf
impl From<&str> for WorkspaceNameBuf
Source§impl From<String> for WorkspaceNameBuf
impl From<String> for WorkspaceNameBuf
Source§impl From<WorkspaceNameBuf> for String
impl From<WorkspaceNameBuf> for String
Source§fn from(value: WorkspaceNameBuf) -> Self
fn from(value: WorkspaceNameBuf) -> Self
Converts to this type from the input type.
Source§impl Hash for WorkspaceNameBuf
impl Hash for WorkspaceNameBuf
Source§impl Ord for WorkspaceNameBuf
impl Ord for WorkspaceNameBuf
Source§fn cmp(&self, other: &WorkspaceNameBuf) -> Ordering
fn cmp(&self, other: &WorkspaceNameBuf) -> Ordering
1.21.0 · 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<&WorkspaceName> for WorkspaceNameBuf
impl PartialEq<&WorkspaceName> for WorkspaceNameBuf
Source§impl PartialEq<&str> for WorkspaceNameBuf
impl PartialEq<&str> for WorkspaceNameBuf
Source§impl PartialEq<String> for WorkspaceNameBuf
impl PartialEq<String> for WorkspaceNameBuf
Source§impl PartialEq<WorkspaceName> for WorkspaceNameBuf
impl PartialEq<WorkspaceName> for WorkspaceNameBuf
Source§impl PartialEq<WorkspaceNameBuf> for &WorkspaceName
impl PartialEq<WorkspaceNameBuf> for &WorkspaceName
Source§impl PartialEq<WorkspaceNameBuf> for &str
impl PartialEq<WorkspaceNameBuf> for &str
Source§impl PartialEq<WorkspaceNameBuf> for String
impl PartialEq<WorkspaceNameBuf> for String
Source§impl PartialEq<WorkspaceNameBuf> for WorkspaceName
impl PartialEq<WorkspaceNameBuf> for WorkspaceName
Source§impl PartialEq<WorkspaceNameBuf> for str
impl PartialEq<WorkspaceNameBuf> for str
Source§impl PartialEq<str> for WorkspaceNameBuf
impl PartialEq<str> for WorkspaceNameBuf
Source§impl PartialEq for WorkspaceNameBuf
impl PartialEq for WorkspaceNameBuf
Source§impl PartialOrd for WorkspaceNameBuf
impl PartialOrd for WorkspaceNameBuf
impl Eq for WorkspaceNameBuf
impl StructuralPartialEq for WorkspaceNameBuf
Auto Trait Implementations§
impl Freeze for WorkspaceNameBuf
impl RefUnwindSafe for WorkspaceNameBuf
impl Send for WorkspaceNameBuf
impl Sync for WorkspaceNameBuf
impl Unpin for WorkspaceNameBuf
impl UnwindSafe for WorkspaceNameBuf
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more