[][src]Struct logicsim::graph::OutputHandle

#[repr(transparent)]pub struct OutputHandle(_);

Handle type that represents a set of gates in an InitializedGateGraph or GateGraphBuilder which we want to query.

Implementations

impl OutputHandle[src]

pub fn u8(self, g: &InitializedGateGraph) -> u8[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_u8(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn i8(self, g: &InitializedGateGraph) -> i8[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_i8(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn u16(self, g: &InitializedGateGraph) -> u16[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_u16(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn i16(self, g: &InitializedGateGraph) -> i16[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_i16(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn u32(self, g: &InitializedGateGraph) -> u32[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_u32(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn i32(self, g: &InitializedGateGraph) -> i32[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_i32(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn u64(self, g: &InitializedGateGraph) -> u64[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_u64(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn i64(self, g: &InitializedGateGraph) -> i64[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_i64(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn u128(self, g: &InitializedGateGraph) -> u128[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_u128(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn i128(self, g: &InitializedGateGraph) -> i128[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_i128(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn char(self, g: &InitializedGateGraph) -> char[src]

Returns a value of the corresponding type created from the current state bits in the output.

If there are more bits than size_of::<type>, the excess bits will be ignored.

If there are less bits, the value will be 0 extended.

pub fn print_char(self, g: &InitializedGateGraph)[src]

Prints the output of the corresponding type() function along with the name of the output.

pub fn bx(self, g: &InitializedGateGraph, n: usize) -> bool[src]

pub fn b0(&self, g: &InitializedGateGraph) -> bool[src]

Trait Implementations

impl Clone for OutputHandle[src]

impl Copy for OutputHandle[src]

impl Debug for OutputHandle[src]

impl Eq for OutputHandle[src]

impl Hash for OutputHandle[src]

impl PartialEq<OutputHandle> for OutputHandle[src]

impl StructuralEq for OutputHandle[src]

impl StructuralPartialEq for OutputHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.