pub fn as_u16(&self) -> Option<u16> {
        match *self {
            Value::U16(val) => Some(val),
            Value::U8(val) => Some(u16::from(val)),
            _ => None,
        }
    }
/// Returns the value as a `Some(u16)` if it is an unsigned int smaller than or equal to u16,
/// or `None` otherwise.
Returns the value as a `Some(u16)` if it is an unsigned int smaller than or equal to u16,
or `None` otherwise.
Returns the value as a ` Some ( u16 ) ` if it is an unsigned int smaller than or equal to u16 or ` None ` otherwise .
pub fn as_u16(&self) -> Option<u16> {
        match *self {
            Value::U16(val) => Some(val),
            Value::U8(val) => Some(u16::from(val)),
            _ => None,
        }
    }
pub fn as_u16 ( & self ) -> Option < u16 > { match * self { Value :: U16 ( val ) => Some ( val ) , Value :: U8 ( val ) => Some ( u16 :: from ( val ) ) , _ => None , } }
Returns the value as a `Some(u16)` if it is an unsigned int smaller than or equal to u16,
or `None` otherwise.
Returns the value as a ` Some ( u16 ) ` if it is an unsigned int smaller than or equal to u16 or ` None ` otherwise .
&self
&self