pub struct JInstructionBuilder {
imm20: Option<u1>,
imm10_1: Option<u10>,
imm11: Option<u1>,
imm19_12: Option<u8>,
rd: Option<u5>,
opcode: Option<u7>,
}
Expand description
Builder for JInstruction
.
Fields§
§imm20: Option<u1>
§imm10_1: Option<u10>
§imm11: Option<u1>
§imm19_12: Option<u8>
§rd: Option<u5>
§opcode: Option<u7>
Implementations§
source§impl JInstructionBuilder
impl JInstructionBuilder
pub fn imm20(&mut self, value: u1) -> &mut Self
pub fn imm10_1(&mut self, value: u10) -> &mut Self
pub fn imm11(&mut self, value: u1) -> &mut Self
pub fn imm19_12(&mut self, value: u8) -> &mut Self
pub fn rd(&mut self, value: u5) -> &mut Self
pub fn opcode(&mut self, value: u7) -> &mut Self
sourcepub fn build(&self) -> Result<JInstruction, JInstructionBuilderError>
pub fn build(&self) -> Result<JInstruction, JInstructionBuilderError>
sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Trait Implementations§
source§impl Clone for JInstructionBuilder
impl Clone for JInstructionBuilder
source§fn clone(&self) -> JInstructionBuilder
fn clone(&self) -> JInstructionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for JInstructionBuilder
impl Default for JInstructionBuilder
source§impl Opcode<JInstructionBuilder> for JOpcode
impl Opcode<JInstructionBuilder> for JOpcode
fn builder(self) -> JInstructionBuilder
Auto Trait Implementations§
impl Freeze for JInstructionBuilder
impl RefUnwindSafe for JInstructionBuilder
impl Send for JInstructionBuilder
impl Sync for JInstructionBuilder
impl Unpin for JInstructionBuilder
impl UnwindSafe for JInstructionBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.