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 for StringType<E>where
E: Environment,
impl<E> Equal for StringType<E>where
E: Environment,
Source§fn is_equal(&self, other: &StringType<E>) -> <StringType<E> as Equal>::Output
fn is_equal(&self, other: &StringType<E>) -> <StringType<E> as Equal>::Output
Returns true
if self
and other
are equal.
Source§fn is_not_equal(
&self,
other: &StringType<E>,
) -> <StringType<E> as Equal>::Output
fn is_not_equal( &self, other: &StringType<E>, ) -> <StringType<E> as Equal>::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§fn parse(string: &str) -> Result<(&str, StringType<E>), Err<VerboseError<&str>>>
fn parse(string: &str) -> Result<(&str, StringType<E>), Err<VerboseError<&str>>>
Parses a string into a string circuit.
Source§impl<E> ToBits for &StringType<E>where
E: Environment,
impl<E> ToBits for &StringType<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<<&StringType<E> as ToBits>::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<<&StringType<E> as ToBits>::Boolean>)
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
Source§fn write_bits_be(&self, vec: &mut Vec<<&StringType<E> as ToBits>::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<<&StringType<E> as ToBits>::Boolean>)
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Source§impl<E> ToBits for StringType<E>where
E: Environment,
impl<E> ToBits for StringType<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<<StringType<E> as ToBits>::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<<StringType<E> as ToBits>::Boolean>)
Outputs the little-endian bit representation of self
with trailing zeros (to byte-alignment).
Source§fn write_bits_be(&self, vec: &mut Vec<<StringType<E> as ToBits>::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<<StringType<E> as ToBits>::Boolean>)
Outputs the big-endian bit representation of self
with leading zeros (to byte-alignment).
type Boolean = Boolean<E>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Source§impl<E> ToFields for StringType<E>where
E: Environment,
impl<E> ToFields for StringType<E>where
E: Environment,
Source§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> !Freeze for StringType<E>
impl<E> RefUnwindSafe for StringType<E>
impl<E> Send for StringType<E>
impl<E> !Sync for StringType<E>
impl<E> Unpin for StringType<E>
impl<E> UnwindSafe for StringType<E>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more