Trait SysvarId

Source
pub trait SysvarId {
    // Required methods
    fn id() -> Address;
    fn check_id(address: &Address) -> bool;
}
Expand description

A type that holds sysvar data and has an associated sysvar Address.

Required Methods§

Source

fn id() -> Address

The Address of the sysvar.

Source

fn check_id(address: &Address) -> bool

Returns true if the given address is the ID.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§