Enum snarkvm_circuit_environment::helpers::Mode
source · pub enum Mode {
Constant,
Public,
Private,
}
Variants§
Implementations§
source§impl Mode
impl Mode
sourcepub const fn is_constant(&self) -> bool
pub const fn is_constant(&self) -> bool
Returns true
if the mode is a constant.
sourcepub const fn is_private(&self) -> bool
pub const fn is_private(&self) -> bool
Returns true
if the mode is private.
sourcepub fn parse(string: &str) -> ParserResult<'_, Self>
pub fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into a mode.
Trait Implementations§
source§impl IntoIterator for Mode
impl IntoIterator for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.