const opportunity
This commit is contained in:
parent
0375844f4f
commit
a819f93fa9
@ -19,14 +19,14 @@ pub struct InstructionCollector<I>{
|
|||||||
instruction:Option<I>,
|
instruction:Option<I>,
|
||||||
}
|
}
|
||||||
impl<I> InstructionCollector<I>{
|
impl<I> InstructionCollector<I>{
|
||||||
pub fn new(time:Time)->Self{
|
pub const fn new(time:Time)->Self{
|
||||||
Self{
|
Self{
|
||||||
time,
|
time,
|
||||||
instruction:None
|
instruction:None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn time(&self)->Time{
|
pub const fn time(&self)->Time{
|
||||||
self.time
|
self.time
|
||||||
}
|
}
|
||||||
pub fn collect(&mut self,instruction:Option<TimedInstruction<I>>){
|
pub fn collect(&mut self,instruction:Option<TimedInstruction<I>>){
|
||||||
|
Loading…
Reference in New Issue
Block a user