Struct rustun::types::U12
[−]
[src]
pub struct U12(_);
Unsigned 12 bit integer.
Methods
impl U12
[src]
fn from_u8(value: u8) -> Self
Converts from u8
value.
fn from_u16(value: u16) -> Option<Self>
Tries to convert from u16
value.
If value
is greater than 0xFFF
, this will return None
.
fn as_u16(&self) -> u16
Converts to u16
value.
Trait Implementations
impl Debug for U12
[src]
impl Default for U12
[src]
impl Clone for U12
[src]
fn clone(&self) -> U12
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for U12
[src]
impl PartialOrd for U12
[src]
fn partial_cmp(&self, __arg_0: &U12) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &U12) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &U12) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &U12) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &U12) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for U12
[src]
fn cmp(&self, __arg_0: &U12) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for U12
[src]
fn eq(&self, __arg_0: &U12) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &U12) -> bool
This method tests for !=
.
impl Eq for U12
[src]
impl Hash for U12
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Method for U12
[src]
fn from_u12(codepoint: U12) -> Option<Self>
Tries to convert from codepoint
to the corresponding method. Read more
fn as_u12(&self) -> U12
Returns the codepoint corresponding this method. Read more
fn request<A>(self) -> Request<Self, A> where
Self: Requestable,
A: Attribute,
Self: Requestable,
A: Attribute,
Makes a request message which have this method.
fn indication<A>(self) -> Indication<Self, A> where
Self: Indicatable,
A: Attribute,
Self: Indicatable,
A: Attribute,
Makes a indication message which have this method.