pub struct InstructionBuilder<T>{ /* private fields */ }Implementations§
source§impl<T> InstructionBuilder<T>
impl<T> InstructionBuilder<T>
pub fn new(kind: InstructionKind) -> Self
pub fn with_input(self, input: T) -> Self
pub fn with_target(self, target: String) -> Self
pub fn build(self) -> Instruction
Trait Implementations§
source§impl<T> Default for InstructionBuilder<T>
impl<T> Default for InstructionBuilder<T>
source§fn default() -> InstructionBuilder<T>
fn default() -> InstructionBuilder<T>
Returns the “default value” for a type. Read more
source§impl<T> From<InstructionBuilder<T>> for Instruction
impl<T> From<InstructionBuilder<T>> for Instruction
source§fn from(value: InstructionBuilder<T>) -> Self
fn from(value: InstructionBuilder<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for InstructionBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for InstructionBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for InstructionBuilder<T>
impl<T> Sync for InstructionBuilder<T>
impl<T> Unpin for InstructionBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for InstructionBuilder<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more