Struct snarkvm_circuit_types::StringType
source · pub struct StringType<E>where
E: Environment,{ /* private fields */ }
Trait Implementations§
source§impl<E> Clone for StringType<E>where
E: Clone + Environment,
impl<E> Clone for StringType<E>where E: Clone + Environment,
source§fn clone(&self) -> StringType<E>
fn clone(&self) -> StringType<E>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<E> Debug for StringType<E>where
E: Environment,
impl<E> Debug for StringType<E>where E: Environment,
source§impl<E> Display for StringType<E>where
E: Environment,
impl<E> Display for StringType<E>where E: Environment,
source§impl<E> Eject for StringType<E>where
E: Environment,
impl<E> Eject for StringType<E>where E: Environment,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the string.
source§fn eject_value(&self) -> <StringType<E> as Eject>::Primitive
fn eject_value(&self) -> <StringType<E> as Eject>::Primitive
Ejects the string as a string literal.
type Primitive = StringType<<E as Environment>::Network>
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
true
if the circuit is a private.source§impl<E> Equal<StringType<E>> for StringType<E>where
E: Environment,
impl<E> Equal<StringType<E>> for StringType<E>where E: Environment,
source§fn is_equal(
&self,
other: &StringType<E>
) -> <StringType<E> as Equal<StringType<E>>>::Output
fn is_equal( &self, other: &StringType<E> ) -> <StringType<E> as Equal<StringType<E>>>::Output
Returns true
if self
and other
are equal.
source§fn is_not_equal(
&self,
other: &StringType<E>
) -> <StringType<E> as Equal<StringType<E>>>::Output
fn is_not_equal( &self, other: &StringType<E> ) -> <StringType<E> as Equal<StringType<E>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<E>
source§impl<E> FromBits for StringType<E>where
E: Environment,
impl<E> FromBits for StringType<E>where E: Environment,
source§fn from_bits_le(
bits_le: &[<StringType<E> as FromBits>::Boolean]
) -> StringType<E>
fn from_bits_le( bits_le: &[<StringType<E> as FromBits>::Boolean] ) -> StringType<E>
Initializes a new string from a list of little-endian bits with trailing zeros (to byte-alignment).
source§fn from_bits_be(
bits_be: &[<StringType<E> as FromBits>::Boolean]
) -> StringType<E>
fn from_bits_be( bits_be: &[<StringType<E> as FromBits>::Boolean] ) -> StringType<E>
Initializes a new scalar field element from a list of big-endian bits with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
source§impl<E> FromStr for StringType<E>where
E: Environment,
impl<E> FromStr for StringType<E>where E: Environment,
source§impl<E> Inject for StringType<E>where
E: Environment,
impl<E> Inject for StringType<E>where E: Environment,
source§fn new(
mode: Mode,
string: <StringType<E> as Inject>::Primitive
) -> StringType<E>
fn new( mode: Mode, string: <StringType<E> as Inject>::Primitive ) -> StringType<E>
Initializes a new instance of a string.
type Primitive = StringType<<E as Environment>::Network>
source§impl<E> Parser for StringType<E>where
E: Environment,
impl<E> Parser for StringType<E>where E: Environment,
source§impl<E> ToBits for &StringType<E>where
E: Environment,
impl<E> ToBits for &StringType<E>where E: Environment,
source§fn to_bits_le(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>
fn to_bits_le(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
source§fn to_bits_be(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>
fn to_bits_be(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
source§impl<E> ToBits for StringType<E>where
E: Environment,
impl<E> ToBits for StringType<E>where E: Environment,
source§fn to_bits_le(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>
fn to_bits_le(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
source§fn to_bits_be(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>
fn to_bits_be(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).