pub struct ProjectionName(pub &'static str);Expand description
The stable name of a projection (e.g. "ocel-flatten-to-xes:by-order").
A ProjectionName makes a lossy transformation recognizable and
auditable: two runs of the same named projection mean the same thing.
It is a thin &'static str newtype so names live in the binary, are cheap to
pass, and cannot be confused with arbitrary user strings.
Structure-only identifier. It names the projection; it does not implement it.
Tuple Fields§
§0: &'static strImplementations§
Source§impl ProjectionName
impl ProjectionName
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Borrows the underlying static name.
§Examples
use wasm4pm_compat::loss::ProjectionName;
let name = ProjectionName("ocel-flatten-to-xes:by-order");
assert_eq!(name.as_str(), "ocel-flatten-to-xes:by-order");Sourcepub const fn into_inner(self) -> &'static str
pub const fn into_inner(self) -> &'static str
Trait Implementations§
Source§impl AsRef<str> for ProjectionName
impl AsRef<str> for ProjectionName
Source§impl Clone for ProjectionName
impl Clone for ProjectionName
Source§fn clone(&self) -> ProjectionName
fn clone(&self) -> ProjectionName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProjectionName
Source§impl Debug for ProjectionName
impl Debug for ProjectionName
Source§impl Display for ProjectionName
impl Display for ProjectionName
impl Eq for ProjectionName
Source§impl From<&'static str> for ProjectionName
impl From<&'static str> for ProjectionName
Source§impl Hash for ProjectionName
impl Hash for ProjectionName
Source§impl PartialEq for ProjectionName
impl PartialEq for ProjectionName
Source§fn eq(&self, other: &ProjectionName) -> bool
fn eq(&self, other: &ProjectionName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProjectionName
Auto Trait Implementations§
impl Freeze for ProjectionName
impl RefUnwindSafe for ProjectionName
impl Send for ProjectionName
impl Sync for ProjectionName
impl Unpin for ProjectionName
impl UnsafeUnpin for ProjectionName
impl UnwindSafe for ProjectionName
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.