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

pub const fn new_inline_from_ascii(len: usize, bytes: &[u8]) -> SmolStr

👎Deprecated: Use new_inline instead

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

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 From<&str> for SmolStr

§

fn from(s: &str) -> SmolStr

Converts to this type from the input type.
§

impl From<String> for SmolStr

§

fn from(text: String) -> SmolStr

Converts to this type from the input type.
§

impl From<&mut str> for SmolStr

§

fn from(s: &mut str) -> SmolStr

Converts to this type from the input type.
§

impl From<Arc<str>> for SmolStr

§

fn from(s: Arc<str>) -> SmolStr

Converts to this type from the input type.
§

impl From<Box<str>> for SmolStr

§

fn from(s: Box<str>) -> SmolStr

Converts to this type from the input type.
§

impl<'a> From<Cow<'a, str>> for SmolStr

§

fn from(s: Cow<'a, str>) -> SmolStr

Converts to this type from the input type.
§

impl From<&String> for SmolStr

§

fn from(s: &String) -> SmolStr

Converts to this type from the input type.
§

impl<'de> Deserialize<'de> for SmolStr

§

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 Deref for SmolStr

§

type Target = str

The resulting type after dereferencing.
§

fn deref(&self) -> &str

Dereferences the value.
§

impl Borrow<str> for SmolStr

§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
§

impl FromStr for SmolStr

§

type Err = Infallible

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<SmolStr, <SmolStr as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl<'a> PartialEq<&'a str> for SmolStr

§

fn eq(&self, other: &&'a str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq for SmolStr

§

fn eq(&self, other: &SmolStr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq<str> for SmolStr

§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq<String> for SmolStr

§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<'a> PartialEq<&'a String> for SmolStr

§

fn eq(&self, other: &&'a String) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Display for SmolStr

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Ord for SmolStr

§

fn cmp(&self, other: &SmolStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl Default for SmolStr

§

fn default() -> SmolStr

Returns the “default value” for a type. Read more
§

impl AsRef<str> for SmolStr

§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Eq for SmolStr

§

impl Serialize for SmolStr

§

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 Debug for SmolStr

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialOrd for SmolStr

§

fn partial_cmp(&self, other: &SmolStr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Clone for SmolStr

§

fn clone(&self) -> SmolStr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Hash for SmolStr

§

fn hash<H>(&self, hasher: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl FromIterator<String> for SmolStr

§

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

§

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

§

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

§

fn from_iter<I>(iter: I) -> SmolStrwhere I: IntoIterator<Item = char>,

Creates a value from an iterator. Read more