pub struct Redstone(/* private fields */);
Expand description
A redstone component.
Implementations§
Source§impl Redstone
impl Redstone
Sourcepub fn new(address: Address) -> Self
pub fn new(address: Address) -> Self
Creates a wrapper around a redstone block or card.
The address
parameter is the address of the component. It is not checked for correctness
at this time because network topology could change after this function returns; as such,
each usage of the value may fail instead.
Trait Implementations§
Source§impl Ord for Redstone
impl Ord for Redstone
Source§impl PartialOrd for Redstone
impl PartialOrd for Redstone
impl Copy for Redstone
impl Eq for Redstone
impl StructuralPartialEq for Redstone
Auto Trait Implementations§
impl Freeze for Redstone
impl RefUnwindSafe for Redstone
impl Send for Redstone
impl Sync for Redstone
impl Unpin for Redstone
impl UnwindSafe for Redstone
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