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