Struct concordium_std::EntrypointName
source · pub struct EntrypointName<'a>(_);
Expand description
An entrypoint name (borrowed version). Expected format: “<func_name>” where the name of the function consists solely of ASCII alphanumeric or punctuation characters.
Implementations
sourceimpl<'a> EntrypointName<'a>
impl<'a> EntrypointName<'a>
sourcepub fn new(name: &'a str) -> Result<EntrypointName<'a>, NewReceiveNameError>
pub fn new(name: &'a str) -> Result<EntrypointName<'a>, NewReceiveNameError>
Create a new name and check the format. See is_valid_entrypoint_name for the expected format.
sourcepub fn new_unchecked(name: &'a str) -> EntrypointName<'a>
pub fn new_unchecked(name: &'a str) -> EntrypointName<'a>
Create a new name. This does not check the format and is therefore unsafe. It is provided for convenience since sometimes it is statically clear that the format is satisfied.
Trait Implementations
sourceimpl<'a> Clone for EntrypointName<'a>
impl<'a> Clone for EntrypointName<'a>
sourcefn clone(&self) -> EntrypointName<'a>
fn clone(&self) -> EntrypointName<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for EntrypointName<'a>
impl<'a> Debug for EntrypointName<'a>
sourceimpl<'a> Display for EntrypointName<'a>
impl<'a> Display for EntrypointName<'a>
sourceimpl<'a> From<EntrypointName<'a>> for &'a str
impl<'a> From<EntrypointName<'a>> for &'a str
sourcefn from(en: EntrypointName<'a>) -> &'a str
fn from(en: EntrypointName<'a>) -> &'a str
Converts to this type from the input type.
sourceimpl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
sourcefn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
fn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
Converts to this type from the input type.
sourceimpl<'a> Hash for EntrypointName<'a>
impl<'a> Hash for EntrypointName<'a>
sourceimpl<'a> Ord for EntrypointName<'a>
impl<'a> Ord for EntrypointName<'a>
sourcefn cmp(&self, other: &EntrypointName<'a>) -> Ordering
fn cmp(&self, other: &EntrypointName<'a>) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<EntrypointName<'a>> for EntrypointName<'a>
impl<'a> PartialEq<EntrypointName<'a>> for EntrypointName<'a>
sourcefn eq(&self, other: &EntrypointName<'a>) -> bool
fn eq(&self, other: &EntrypointName<'a>) -> bool
sourceimpl<'a> PartialOrd<EntrypointName<'a>> for EntrypointName<'a>
impl<'a> PartialOrd<EntrypointName<'a>> for EntrypointName<'a>
sourcefn partial_cmp(&self, other: &EntrypointName<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &EntrypointName<'a>) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl<'a> Serial for EntrypointName<'a>
impl<'a> Serial for EntrypointName<'a>
impl<'a> Copy for EntrypointName<'a>
impl<'a> Eq for EntrypointName<'a>
impl<'a> StructuralEq for EntrypointName<'a>
impl<'a> StructuralPartialEq for EntrypointName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for EntrypointName<'a>
impl<'a> Send for EntrypointName<'a>
impl<'a> Sync for EntrypointName<'a>
impl<'a> Unpin for EntrypointName<'a>
impl<'a> UnwindSafe for EntrypointName<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more