Struct concordium_std::OwnedEntrypointName
source · [−]pub struct OwnedEntrypointName(_);
Expand description
An entrypoint name (owned version). Expected format:
“<func_name>”. Most methods on this type are available via the
as_entrypoint_name
and the
methods on the EntrypointName
type.
Implementations
sourceimpl OwnedEntrypointName
impl OwnedEntrypointName
sourcepub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
pub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
Create a new name and check the format. See is_valid_entrypoint_name for the expected format.
sourcepub fn new_unchecked(name: String) -> OwnedEntrypointName
pub fn new_unchecked(name: String) -> OwnedEntrypointName
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.
pub fn as_entrypoint_name(&self) -> EntrypointName<'_>
Trait Implementations
sourceimpl Clone for OwnedEntrypointName
impl Clone for OwnedEntrypointName
sourcefn clone(&self) -> OwnedEntrypointName
fn clone(&self) -> OwnedEntrypointName
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 more
sourceimpl Debug for OwnedEntrypointName
impl Debug for OwnedEntrypointName
sourceimpl Deserial for OwnedEntrypointName
impl Deserial for OwnedEntrypointName
sourcefn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError> where
R: Read,
fn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError> where
R: Read,
Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more
sourceimpl Display for OwnedEntrypointName
impl Display for OwnedEntrypointName
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 From<OwnedEntrypointName> for String
impl From<OwnedEntrypointName> for String
sourcefn from(oen: OwnedEntrypointName) -> String
fn from(oen: OwnedEntrypointName) -> String
Converts to this type from the input type.
sourceimpl Hash for OwnedEntrypointName
impl Hash for OwnedEntrypointName
sourceimpl Ord for OwnedEntrypointName
impl Ord for OwnedEntrypointName
sourceimpl PartialEq<OwnedEntrypointName> for OwnedEntrypointName
impl PartialEq<OwnedEntrypointName> for OwnedEntrypointName
sourcefn eq(&self, other: &OwnedEntrypointName) -> bool
fn eq(&self, other: &OwnedEntrypointName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OwnedEntrypointName) -> bool
fn ne(&self, other: &OwnedEntrypointName) -> bool
This method tests for !=
.
sourceimpl PartialOrd<OwnedEntrypointName> for OwnedEntrypointName
impl PartialOrd<OwnedEntrypointName> for OwnedEntrypointName
sourcefn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · 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 more
sourceimpl Serial for OwnedEntrypointName
impl Serial for OwnedEntrypointName
sourceimpl TryFrom<String> for OwnedEntrypointName
impl TryFrom<String> for OwnedEntrypointName
type Error = NewReceiveNameError
type Error = NewReceiveNameError
The type returned in the event of a conversion error.
sourcefn try_from(
value: String
) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
fn try_from(
value: String
) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for OwnedEntrypointName
impl StructuralEq for OwnedEntrypointName
impl StructuralPartialEq for OwnedEntrypointName
Auto Trait Implementations
impl RefUnwindSafe for OwnedEntrypointName
impl Send for OwnedEntrypointName
impl Sync for OwnedEntrypointName
impl Unpin for OwnedEntrypointName
impl UnwindSafe for OwnedEntrypointName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more