[−][src]Struct casper_types::contracts::EntryPoints
Collection of named entry points
Implementations
impl EntryPoints
[src]
pub fn new() -> EntryPoints
[src]
Creates empty instance of EntryPoints
.
pub fn add_entry_point(&mut self, entry_point: EntryPoint)
[src]
Adds new EntryPoint
.
pub fn has_entry_point(&self, entry_point_name: &str) -> bool
[src]
Checks if given EntryPoint
exists.
pub fn get(&self, entry_point_name: &str) -> Option<&EntryPoint>
[src]
Gets an existing EntryPoint
by its name.
pub fn keys(&self) -> impl Iterator<Item = &String>
[src]
Returns iterator for existing entry point names.
pub fn take_entry_points(self) -> Vec<EntryPoint>
[src]
Takes all entry points.
Trait Implementations
impl Clone for EntryPoints
[src]
fn clone(&self) -> EntryPoints
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EntryPoints
[src]
impl Default for EntryPoints
[src]
impl Eq for EntryPoints
[src]
impl From<Vec<EntryPoint>> for EntryPoints
[src]
fn from(entry_points: Vec<EntryPoint>) -> EntryPoints
[src]
impl FromBytes for EntryPoints
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl PartialEq<EntryPoints> for EntryPoints
[src]
fn eq(&self, other: &EntryPoints) -> bool
[src]
fn ne(&self, other: &EntryPoints) -> bool
[src]
impl StructuralEq for EntryPoints
[src]
impl StructuralPartialEq for EntryPoints
[src]
impl ToBytes for EntryPoints
[src]
Auto Trait Implementations
impl RefUnwindSafe for EntryPoints
impl Send for EntryPoints
impl Sync for EntryPoints
impl Unpin for EntryPoints
impl UnwindSafe for EntryPoints
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,