Struct snarkvm_circuit_types_string::StringType
source · pub struct StringType<E: Environment> { /* private fields */ }
Trait Implementations§
source§impl<E: Clone + Environment> Clone for StringType<E>
impl<E: Clone + Environment> Clone for StringType<E>
source§fn clone(&self) -> StringType<E>
fn clone(&self) -> StringType<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Environment> Debug for StringType<E>
impl<E: Environment> Debug for StringType<E>
source§impl<E: Environment> Display for StringType<E>
impl<E: Environment> Display for StringType<E>
source§impl<E: Environment> Eject for StringType<E>
impl<E: Environment> Eject for StringType<E>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the string.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::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)
Ejects the mode and primitive value of the circuit type.
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<E: Environment> Equal<StringType<E>> for StringType<E>
impl<E: Environment> Equal<StringType<E>> for StringType<E>
source§impl<E: Environment> FromBits for StringType<E>
impl<E: Environment> FromBits for StringType<E>
source§fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
Initializes a new string from a list of little-endian bits with trailing zeros (to byte-alignment).
source§fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
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: Environment> FromStr for StringType<E>
impl<E: Environment> FromStr for StringType<E>
source§impl<E: Environment> Inject for StringType<E>
impl<E: Environment> Inject for StringType<E>
source§impl<E: Environment> Parser for StringType<E>
impl<E: Environment> Parser for StringType<E>
source§impl<E: Environment> ToBits for &StringType<E>
impl<E: Environment> ToBits for &StringType<E>
source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
source§impl<E: Environment> ToBits for StringType<E>
impl<E: Environment> ToBits for StringType<E>
source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
source§impl<E: Environment> ToFields for StringType<E>
impl<E: Environment> ToFields for StringType<E>
source§impl<E: Environment> TypeName for StringType<E>
impl<E: Environment> TypeName for StringType<E>
impl<E: Environment> StringTrait for StringType<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for StringType<E>where <E as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<E> !Send for StringType<E>
impl<E> !Sync for StringType<E>
impl<E> Unpin for StringType<E>where <E as Environment>::BaseField: Unpin,
impl<E> UnwindSafe for StringType<E>where <E as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
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