Struct snarkvm_circuit::StringType
[−]pub struct StringType<E> where
E: Environment, { /* private fields */ }
Trait Implementations
impl<E> Clone for StringType<E> where
E: Clone + Environment,
impl<E> Clone for StringType<E> where
E: Clone + Environment,
fn clone(&self) -> StringType<E>
fn clone(&self) -> StringType<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<E> Debug for StringType<E> where
E: Environment,
impl<E> Debug for StringType<E> where
E: Environment,
impl<E> Display for StringType<E> where
E: Environment,
impl<E> Display for StringType<E> where
E: Environment,
impl<E> Eject for StringType<E> where
E: Environment,
impl<E> Eject for StringType<E> where
E: Environment,
fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the string.
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>
sourcefn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type. Read more
sourcefn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns true
if the circuit is a constant. Read more
sourcefn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns true
if the circuit is a private. Read more
impl<E> Equal<StringType<E>> for StringType<E> where
E: Environment,
impl<E> Equal<StringType<E>> for StringType<E> where
E: Environment,
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.
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>
impl<E> FromBits for StringType<E> where
E: Environment,
impl<E> FromBits for StringType<E> where
E: Environment,
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).
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>
impl<E> FromStr for StringType<E> where
E: Environment,
impl<E> FromStr for StringType<E> where
E: Environment,
impl<E> Inject for StringType<E> where
E: Environment,
impl<E> Inject for StringType<E> where
E: Environment,
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>
impl<E> Parser for StringType<E> where
E: Environment,
impl<E> Parser for StringType<E> where
E: Environment,
impl<E> ToBits for &StringType<E> where
E: Environment,
impl<E> ToBits for &StringType<E> where
E: Environment,
fn to_bits_le(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_le(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
fn to_bits_be(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_be(&self) -> Vec<<&StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
impl<E> ToBits for StringType<E> where
E: Environment,
impl<E> ToBits for StringType<E> where
E: Environment,
fn to_bits_le(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_le(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
fn to_bits_be(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_be(&self) -> Vec<<StringType<E> as ToBits>::Boolean, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
impl<E> ToFields for StringType<E> where
E: Environment,
impl<E> ToFields for StringType<E> where
E: Environment,
impl<E> TypeName for StringType<E> where
E: Environment,
impl<E> TypeName for StringType<E> where
E: Environment,
impl<E> StringTrait for StringType<E> where
E: Environment,
Auto Trait Implementations
impl<E> RefUnwindSafe for StringType<E> where
<E as Environment>::BaseField: 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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