pub struct NeoVMSyscallRegistry { /* private fields */ }Expand description
Neo N3 System Call Registry
Implementations§
Source§impl NeoVMSyscallRegistry
impl NeoVMSyscallRegistry
pub const fn new(syscalls: &'static [NeoVMSyscallInfo]) -> NeoVMSyscallRegistry
pub fn get_syscall(&self, name: &str) -> Option<&NeoVMSyscallInfo>
pub fn get_syscall_by_hash(&self, hash: u32) -> Option<&NeoVMSyscallInfo>
pub fn has_syscall(&self, name: &str) -> bool
pub fn get_instance() -> NeoVMSyscallRegistry
pub fn iter(&self) -> Iter<'static, NeoVMSyscallInfo>
pub fn names(&self) -> impl Iterator<Item = &'static str>
Auto Trait Implementations§
impl Freeze for NeoVMSyscallRegistry
impl RefUnwindSafe for NeoVMSyscallRegistry
impl Send for NeoVMSyscallRegistry
impl Sync for NeoVMSyscallRegistry
impl Unpin for NeoVMSyscallRegistry
impl UnsafeUnpin for NeoVMSyscallRegistry
impl UnwindSafe for NeoVMSyscallRegistry
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