pub struct LogicHandle { /* private fields */ }Expand description
A value-bearing signal. Explicit get()/set() (mapping row 20 —
cocotb 2.x itself moved off the .value property).
Implementations§
Source§impl LogicHandle
impl LogicHandle
pub fn name(&self) -> String
pub fn full_name(&self) -> String
pub fn size(&self) -> u32
pub fn get(&self) -> LogicArray
pub fn get_binstr(&self) -> String
pub fn get_u64(&self) -> Result<u64, ValueError>
pub fn is_low(&self) -> bool
pub fn set_u64(&self, v: u64)
pub fn set(&self, v: &LogicArray)
pub fn set_u64_now(&self, v: u64)
pub fn set_now(&self, v: &LogicArray)
pub fn rising_edge(&self) -> Edge ⓘ
pub fn falling_edge(&self) -> Edge ⓘ
pub fn value_change(&self) -> Edge ⓘ
Trait Implementations§
Source§impl Clone for LogicHandle
impl Clone for LogicHandle
Source§fn clone(&self) -> LogicHandle
fn clone(&self) -> LogicHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LogicHandle
Source§impl Debug for LogicHandle
impl Debug for LogicHandle
impl Eq for LogicHandle
Source§impl PartialEq for LogicHandle
impl PartialEq for LogicHandle
impl StructuralPartialEq for LogicHandle
Auto Trait Implementations§
impl !Send for LogicHandle
impl !Sync for LogicHandle
impl Freeze for LogicHandle
impl RefUnwindSafe for LogicHandle
impl Unpin for LogicHandle
impl UnsafeUnpin for LogicHandle
impl UnwindSafe for LogicHandle
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