Enum ArgEncoding
pub enum ArgEncoding {
SignedLittleEndian = 0,
SignedBigEndian = 1,
UnsignedLittleEndian = 2,
UnsignedBigEndian = 3,
}
Expand description
The encoding of an input argument passed to an expression.
Variants§
SignedLittleEndian = 0
Signed value with the least-significant byte first. If the input is an integer value, the bytes in the integer are reversed.
SignedBigEndian = 1
Signed value with the most-significant byte first. If the input is an integer value, the bytes in the integer are not reversed.
UnsignedLittleEndian = 2
Unsigned value with the least-significant byte first. If the input is an integer value, the bytes in the integer are reversed.
UnsignedBigEndian = 3
Unsigned value with the most-significant byte first. If the input is an integer value, the bytes in the integer are not reversed.
Implementations§
§impl ArgEncoding
impl ArgEncoding
pub fn is_signed(self) -> bool
pub fn is_signed(self) -> bool
Returns true if the encoding is ArgEncoding::SignedLittleEndian
or ArgEncoding::SignedBigEndian
pub fn is_le(self) -> bool
pub fn is_le(self) -> bool
Returns true if the encoding is ArgEncoding::SignedLittleEndian
or ArgEncoding::UnsignedLittleEndian
Trait Implementations§
§impl Clone for ArgEncoding
impl Clone for ArgEncoding
§fn clone(&self) -> ArgEncoding
fn clone(&self) -> ArgEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ArgEncoding
impl Debug for ArgEncoding
§impl<'de> Deserialize<'de> for ArgEncoding
impl<'de> Deserialize<'de> for ArgEncoding
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
§impl Hash for ArgEncoding
impl Hash for ArgEncoding
§impl JsonSchema for ArgEncoding
impl JsonSchema for ArgEncoding
§fn schema_name() -> String
fn schema_name() -> String
§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more§impl Ord for ArgEncoding
impl Ord for ArgEncoding
§impl PartialEq for ArgEncoding
impl PartialEq for ArgEncoding
§impl PartialOrd for ArgEncoding
impl PartialOrd for ArgEncoding
§impl Serialize for ArgEncoding
impl Serialize for ArgEncoding
impl Copy for ArgEncoding
impl Eq for ArgEncoding
impl StructuralPartialEq for ArgEncoding
Auto Trait Implementations§
impl Freeze for ArgEncoding
impl RefUnwindSafe for ArgEncoding
impl Send for ArgEncoding
impl Sync for ArgEncoding
impl Unpin for ArgEncoding
impl UnwindSafe for ArgEncoding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more