pub struct ExposableString {
pub hash_value: u64,
/* private fields */
}
Fields§
§hash_value: u64
Implementations§
Source§impl ExposableString
impl ExposableString
pub fn new(value: String) -> Self
pub fn as_str(&self) -> &str
pub fn clone_inner(&self) -> Arc<String>
pub fn from_arc(value: Arc<String>) -> Self
Sourcepub fn unperformant_to_string(&self) -> String
pub fn unperformant_to_string(&self) -> String
Clones the value out of the Arc. This is not performant.
Please only use this if we are giving a value to a caller outside of this library.
Consider using the as_str
or clone_inner
methods instead.
Trait Implementations§
Source§impl Clone for ExposableString
impl Clone for ExposableString
Source§fn clone(&self) -> ExposableString
fn clone(&self) -> ExposableString
Returns a duplicate 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 ExposableString
impl Debug for ExposableString
Source§impl Default for ExposableString
impl Default for ExposableString
Source§impl<'de> Deserialize<'de> for ExposableString
impl<'de> Deserialize<'de> for ExposableString
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExposableString
impl PartialEq for ExposableString
Source§impl Serialize for ExposableString
impl Serialize for ExposableString
impl Eq for ExposableString
Auto Trait Implementations§
impl Freeze for ExposableString
impl RefUnwindSafe for ExposableString
impl Send for ExposableString
impl Sync for ExposableString
impl Unpin for ExposableString
impl UnwindSafe for ExposableString
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> 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.