Struct snarkvm_circuit_types_string::StringType
source · [−]pub struct StringType<E: Environment> { /* private fields */ }Trait Implementations
sourceimpl<E: Clone + Environment> Clone for StringType<E>
impl<E: Clone + Environment> Clone for StringType<E>
sourcefn 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
sourceimpl<E: Environment> Debug for StringType<E>
impl<E: Environment> Debug for StringType<E>
sourceimpl<E: Environment> Display for StringType<E>
impl<E: Environment> Display for StringType<E>
sourceimpl<E: Environment> Eject for StringType<E>
impl<E: Environment> Eject for StringType<E>
sourcefn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the string.
sourcefn 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>
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
sourceimpl<E: Environment> Equal<StringType<E>> for StringType<E>
impl<E: Environment> Equal<StringType<E>> for StringType<E>
sourceimpl<E: Environment> FromBits for StringType<E>
impl<E: Environment> FromBits for StringType<E>
sourcefn 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).
sourcefn 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>
sourceimpl<E: Environment> FromStr for StringType<E>
impl<E: Environment> FromStr for StringType<E>
sourceimpl<E: Environment> Inject for StringType<E>
impl<E: Environment> Inject for StringType<E>
sourceimpl<E: Environment> Parser for StringType<E>
impl<E: Environment> Parser for StringType<E>
sourceimpl<E: Environment> ToBits for &StringType<E>
impl<E: Environment> ToBits for &StringType<E>
sourcefn to_bits_le(&self) -> Vec<Self::Boolean>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_le(&self) -> Vec<Self::Boolean>ⓘ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).
sourcefn to_bits_be(&self) -> Vec<Self::Boolean>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_be(&self) -> Vec<Self::Boolean>ⓘ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>
sourceimpl<E: Environment> ToBits for StringType<E>
impl<E: Environment> ToBits for StringType<E>
sourcefn to_bits_le(&self) -> Vec<Self::Boolean>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_le(&self) -> Vec<Self::Boolean>ⓘ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).
sourcefn to_bits_be(&self) -> Vec<Self::Boolean>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_bits_be(&self) -> Vec<Self::Boolean>ⓘ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>
sourceimpl<E: Environment> ToFields for StringType<E>
impl<E: Environment> ToFields for StringType<E>
sourceimpl<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: 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