Struct casper_types::EntryPoint
source · pub struct EntryPoint { /* private fields */ }
Expand description
Type signature of a method. Order of arguments matter since can be referenced by index as well as name.
Implementations§
source§impl EntryPoint
impl EntryPoint
sourcepub fn new<T: Into<String>>(
name: T,
args: Parameters,
ret: CLType,
access: EntryPointAccess,
entry_point_type: EntryPointType
) -> Self
pub fn new<T: Into<String>>( name: T, args: Parameters, ret: CLType, access: EntryPointAccess, entry_point_type: EntryPointType ) -> Self
EntryPoint
constructor.
sourcepub fn default_with_name<T: Into<String>>(name: T) -> Self
pub fn default_with_name<T: Into<String>>(name: T) -> Self
Create a default EntryPoint
with specified name.
sourcepub fn access(&self) -> &EntryPointAccess
pub fn access(&self) -> &EntryPointAccess
Get access enum.
sourcepub fn entry_point_type(&self) -> EntryPointType
pub fn entry_point_type(&self) -> EntryPointType
Obtains entry point
Trait Implementations§
source§impl Clone for EntryPoint
impl Clone for EntryPoint
source§fn clone(&self) -> EntryPoint
fn clone(&self) -> EntryPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EntryPoint
impl Debug for EntryPoint
source§impl Default for EntryPoint
impl Default for EntryPoint
source§impl<'de> Deserialize<'de> for EntryPoint
impl<'de> Deserialize<'de> for EntryPoint
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EntryPoint> for (String, Parameters, CLType, EntryPointAccess, EntryPointType)
impl From<EntryPoint> for (String, Parameters, CLType, EntryPointAccess, EntryPointType)
source§fn from(entry_point: EntryPoint) -> Self
fn from(entry_point: EntryPoint) -> Self
Converts to this type from the input type.
source§impl FromBytes for EntryPoint
impl FromBytes for EntryPoint
source§impl PartialEq for EntryPoint
impl PartialEq for EntryPoint
source§fn eq(&self, other: &EntryPoint) -> bool
fn eq(&self, other: &EntryPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EntryPoint
impl Serialize for EntryPoint
source§impl ToBytes for EntryPoint
impl ToBytes for EntryPoint
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for EntryPoint
impl StructuralEq for EntryPoint
impl StructuralPartialEq for EntryPoint
Auto Trait Implementations§
impl RefUnwindSafe for EntryPoint
impl Send for EntryPoint
impl Sync for EntryPoint
impl Unpin for EntryPoint
impl UnwindSafe for EntryPoint
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