Type Alias akka_persistence_rs::EntityId
source · pub type EntityId = SmolStr;
Expand description
Uniquely identifies an entity, or entity instance.
Aliased Type§
struct EntityId(/* private fields */);
Implementations
§impl SmolStr
impl SmolStr
pub const fn new_inline_from_ascii(len: usize, bytes: &[u8]) -> SmolStr
👎Deprecated: Use
new_inline
insteadpub const fn new_inline(text: &str) -> SmolStr
pub const fn new_inline(text: &str) -> SmolStr
Constructs inline variant of SmolStr
.
Panics if text.len() > 23
.
pub const fn new_static(text: &'static str) -> SmolStr
pub const fn new_static(text: &'static str) -> SmolStr
Constructs a SmolStr
from a statically allocated string.
This never allocates.
pub fn new<T>(text: T) -> SmolStrwhere T: AsRef<str>,
pub fn as_str(&self) -> &str
pub fn to_string(&self) -> String
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub const fn is_heap_allocated(&self) -> bool
Trait Implementations
§impl<'de> Deserialize<'de> for SmolStr
impl<'de> Deserialize<'de> for SmolStr
§fn deserialize<D>(
deserializer: D
) -> Result<SmolStr, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<SmolStr, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<'a> PartialEq<&'a String> for SmolStr
impl<'a> PartialEq<&'a String> for SmolStr
§impl Ord for SmolStr
impl Ord for SmolStr
impl Eq for SmolStr
§impl Serialize for SmolStr
impl Serialize for SmolStr
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl PartialOrd for SmolStr
impl PartialOrd for SmolStr
§fn partial_cmp(&self, other: &SmolStr) -> Option<Ordering>
fn partial_cmp(&self, other: &SmolStr) -> Option<Ordering>
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 more§impl FromIterator<String> for SmolStr
impl FromIterator<String> for SmolStr
§fn from_iter<I>(iter: I) -> SmolStrwhere
I: IntoIterator<Item = String>,
fn from_iter<I>(iter: I) -> SmolStrwhere I: IntoIterator<Item = String>,
Creates a value from an iterator. Read more
§impl<'a> FromIterator<&'a String> for SmolStr
impl<'a> FromIterator<&'a String> for SmolStr
§fn from_iter<I>(iter: I) -> SmolStrwhere
I: IntoIterator<Item = &'a String>,
fn from_iter<I>(iter: I) -> SmolStrwhere I: IntoIterator<Item = &'a String>,
Creates a value from an iterator. Read more
§impl<'a> FromIterator<&'a str> for SmolStr
impl<'a> FromIterator<&'a str> for SmolStr
§fn from_iter<I>(iter: I) -> SmolStrwhere
I: IntoIterator<Item = &'a str>,
fn from_iter<I>(iter: I) -> SmolStrwhere I: IntoIterator<Item = &'a str>,
Creates a value from an iterator. Read more
§impl FromIterator<char> for SmolStr
impl FromIterator<char> for SmolStr
§fn from_iter<I>(iter: I) -> SmolStrwhere
I: IntoIterator<Item = char>,
fn from_iter<I>(iter: I) -> SmolStrwhere I: IntoIterator<Item = char>,
Creates a value from an iterator. Read more