Enum leo_asg::type_::Type [−][src]
pub enum Type<'a> { Address, Boolean, Char, Field, Group, Integer(IntegerType), Array(Box<Type<'a>>, usize), Tuple(Vec<Type<'a>>), Circuit(&'a Circuit<'a>), }
Expand description
A type in an asg.
Variants
Integer(IntegerType)
Circuit(&'a Circuit<'a>)
Implementations
impl<'a> Type<'a>
[src]
impl<'a> Type<'a>
[src]pub fn is_assignable_from(&self, from: &Type<'a>) -> bool
[src]
pub fn partial(self) -> PartialType<'a>
[src]
pub fn is_unit(&self) -> bool
[src]
pub fn can_cast_to(&self, to: &Type<'a>) -> bool
[src]
Trait Implementations
impl<'a> Into<PartialType<'a>> for Type<'a>
[src]
impl<'a> Into<PartialType<'a>> for Type<'a>
[src]fn into(self) -> PartialType<'a>
[src]
fn into(self) -> PartialType<'a>
[src]Performs the conversion.
impl<'a> StructuralPartialEq for Type<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Type<'a>
impl<'a> !Send for Type<'a>
impl<'a> !Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> !UnwindSafe for Type<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more