pub struct DelayLine<'a> {
pub delay: u64,
pub input: &'a Option<bool>,
}Expand description
延迟线
§Examples
use logicgate::DelayLine;
let a = DelayLine{delay: 20,input: &Some(true)};
a.get_result();Fields§
§delay: u64延迟时间,单位为毫秒
input: &'a Option<bool>Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DelayLine<'a>
impl<'a> RefUnwindSafe for DelayLine<'a>
impl<'a> Send for DelayLine<'a>
impl<'a> Sync for DelayLine<'a>
impl<'a> Unpin for DelayLine<'a>
impl<'a> UnwindSafe for DelayLine<'a>
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