Struct watchmaker_vm::ArchitectureBuilder
source · [−]pub struct ArchitectureBuilder {
pub iinput: u16,
pub istate: u16,
pub ioutput: u16,
pub dinput: u16,
pub dstate: u16,
pub doutput: u16,
}
Fields
iinput: u16
istate: u16
ioutput: u16
dinput: u16
dstate: u16
doutput: u16
Implementations
sourceimpl ArchitectureBuilder
impl ArchitectureBuilder
pub fn iinput(self, iinput: u16) -> Self
pub fn istate(self, istate: u16) -> Self
pub fn ioutput(self, ioutput: u16) -> Self
pub fn dinput(self, dinput: u16) -> Self
pub fn dstate(self, dstate: u16) -> Self
pub fn doutput(self, doutput: u16) -> Self
pub fn build(self) -> Result<Architecture, String>
Trait Implementations
sourceimpl Clone for ArchitectureBuilder
impl Clone for ArchitectureBuilder
sourcefn clone(&self) -> ArchitectureBuilder
fn clone(&self) -> ArchitectureBuilder
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 Debug for ArchitectureBuilder
impl Debug for ArchitectureBuilder
sourceimpl Default for ArchitectureBuilder
impl Default for ArchitectureBuilder
sourcefn default() -> ArchitectureBuilder
fn default() -> ArchitectureBuilder
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ArchitectureBuilder> for ArchitectureBuilder
impl PartialEq<ArchitectureBuilder> for ArchitectureBuilder
sourcefn eq(&self, other: &ArchitectureBuilder) -> bool
fn eq(&self, other: &ArchitectureBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArchitectureBuilder) -> bool
fn ne(&self, other: &ArchitectureBuilder) -> bool
This method tests for !=
.
impl StructuralPartialEq for ArchitectureBuilder
Auto Trait Implementations
impl RefUnwindSafe for ArchitectureBuilder
impl Send for ArchitectureBuilder
impl Sync for ArchitectureBuilder
impl Unpin for ArchitectureBuilder
impl UnwindSafe for ArchitectureBuilder
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