Enum snarkvm_circuit_environment::prelude::Mode
source · pub enum Mode {
Constant,
Public,
Private,
}
Variants
Constant
Public
Private
Implementations
sourceimpl 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
sourceimpl IntoIterator for Mode
impl IntoIterator 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.