pub struct APItem {
pub negation: bool,
/* private fields */
}
Fields§
§negation: bool
Implementations§
Source§impl APItem
impl APItem
pub fn new( prefix: u8, negation: bool, address: Address, ) -> Result<APItem, AddressError>
pub const fn get_prefix(&self) -> u8
pub fn set_prefix(&mut self, prefix: u8) -> Result<(), AddressError>
pub const fn get_address(&self) -> &Address
pub fn set_address(&mut self, address: Address) -> Result<(), AddressError>
Trait Implementations§
impl Eq for APItem
impl StructuralPartialEq for APItem
Auto Trait Implementations§
impl Freeze for APItem
impl RefUnwindSafe for APItem
impl Send for APItem
impl Sync for APItem
impl Unpin for APItem
impl UnwindSafe for APItem
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