#[repr(transparent)]pub struct NeoBoolean(pub bool);Expand description
Neo N3 Boolean type
Tuple Fields§
§0: boolImplementations§
Source§impl NeoBoolean
impl NeoBoolean
pub const TRUE: NeoBoolean
pub const FALSE: NeoBoolean
pub fn new(value: bool) -> NeoBoolean
pub fn as_bool(self) -> bool
Trait Implementations§
Source§impl BitAnd for NeoBoolean
impl BitAnd for NeoBoolean
Source§type Output = NeoBoolean
type Output = NeoBoolean
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: NeoBoolean) -> <NeoBoolean as BitAnd>::Output
fn bitand(self, rhs: NeoBoolean) -> <NeoBoolean as BitAnd>::Output
Performs the
& operation. Read moreSource§impl BitOr for NeoBoolean
impl BitOr for NeoBoolean
Source§type Output = NeoBoolean
type Output = NeoBoolean
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: NeoBoolean) -> <NeoBoolean as BitOr>::Output
fn bitor(self, rhs: NeoBoolean) -> <NeoBoolean as BitOr>::Output
Performs the
| operation. Read moreSource§impl BitXor for NeoBoolean
impl BitXor for NeoBoolean
Source§type Output = NeoBoolean
type Output = NeoBoolean
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: NeoBoolean) -> <NeoBoolean as BitXor>::Output
fn bitxor(self, rhs: NeoBoolean) -> <NeoBoolean as BitXor>::Output
Performs the
^ operation. Read moreSource§impl Clone for NeoBoolean
impl Clone for NeoBoolean
Source§fn clone(&self) -> NeoBoolean
fn clone(&self) -> NeoBoolean
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeoBoolean
impl Debug for NeoBoolean
Source§impl Default for NeoBoolean
impl Default for NeoBoolean
Source§fn default() -> NeoBoolean
fn default() -> NeoBoolean
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NeoBoolean
impl<'de> Deserialize<'de> for NeoBoolean
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoBoolean, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeoBoolean, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NeoBoolean> for NeoValue
impl From<NeoBoolean> for NeoValue
Source§fn from(value: NeoBoolean) -> NeoValue
fn from(value: NeoBoolean) -> NeoValue
Converts to this type from the input type.
Source§impl Not for NeoBoolean
impl Not for NeoBoolean
Source§impl PartialEq for NeoBoolean
impl PartialEq for NeoBoolean
Source§impl Serialize for NeoBoolean
impl Serialize for NeoBoolean
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for NeoBoolean
impl Eq for NeoBoolean
impl StructuralPartialEq for NeoBoolean
Auto Trait Implementations§
impl Freeze for NeoBoolean
impl RefUnwindSafe for NeoBoolean
impl Send for NeoBoolean
impl Sync for NeoBoolean
impl Unpin for NeoBoolean
impl UnwindSafe for NeoBoolean
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