Struct argonautica::input::AdditionalData [−][src]
pub struct AdditionalData(_);
Type-safe struct representing the raw bytes of your additional data (if any)
Methods
impl AdditionalData
[src]
impl AdditionalData
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
Read-only access to the underlying byte buffer
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Read-only acccess to the underlying byte buffer's length
pub fn to_str(&self) -> Result<&str, Error>
[src]
pub fn to_str(&self) -> Result<&str, Error>
Read-only access to the underlying byte buffer as a &str
if its bytes are valid utf-8
Trait Implementations
impl From<Vec<u8>> for AdditionalData
[src]
impl From<Vec<u8>> for AdditionalData
fn from(bytes: Vec<u8>) -> AdditionalData
[src]
fn from(bytes: Vec<u8>) -> AdditionalData
Performs the conversion.
impl From<String> for AdditionalData
[src]
impl From<String> for AdditionalData
fn from(s: String) -> AdditionalData
[src]
fn from(s: String) -> AdditionalData
Performs the conversion.
impl<'a> From<&'a [u8]> for AdditionalData
[src]
impl<'a> From<&'a [u8]> for AdditionalData
impl<'a> From<&'a str> for AdditionalData
[src]
impl<'a> From<&'a str> for AdditionalData
fn from(s: &str) -> AdditionalData
[src]
fn from(s: &str) -> AdditionalData
Performs the conversion.
impl<'a> From<&'a Vec<u8>> for AdditionalData
[src]
impl<'a> From<&'a Vec<u8>> for AdditionalData
fn from(bytes: &Vec<u8>) -> AdditionalData
[src]
fn from(bytes: &Vec<u8>) -> AdditionalData
Performs the conversion.
impl<'a> From<&'a String> for AdditionalData
[src]
impl<'a> From<&'a String> for AdditionalData
fn from(s: &String) -> AdditionalData
[src]
fn from(s: &String) -> AdditionalData
Performs the conversion.
impl<'a> From<&'a AdditionalData> for AdditionalData
[src]
impl<'a> From<&'a AdditionalData> for AdditionalData
fn from(additional_data: &AdditionalData) -> AdditionalData
[src]
fn from(additional_data: &AdditionalData) -> AdditionalData
Performs the conversion.
impl Clone for AdditionalData
[src]
impl Clone for AdditionalData
fn clone(&self) -> AdditionalData
[src]
fn clone(&self) -> AdditionalData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AdditionalData
[src]
impl Debug for AdditionalData
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for AdditionalData
[src]
impl Eq for AdditionalData
impl PartialEq for AdditionalData
[src]
impl PartialEq for AdditionalData
fn eq(&self, other: &AdditionalData) -> bool
[src]
fn eq(&self, other: &AdditionalData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AdditionalData) -> bool
[src]
fn ne(&self, other: &AdditionalData) -> bool
This method tests for !=
.
impl Ord for AdditionalData
[src]
impl Ord for AdditionalData
fn cmp(&self, other: &AdditionalData) -> Ordering
[src]
fn cmp(&self, other: &AdditionalData) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for AdditionalData
[src]
impl PartialOrd for AdditionalData
fn partial_cmp(&self, other: &AdditionalData) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AdditionalData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AdditionalData) -> bool
[src]
fn lt(&self, other: &AdditionalData) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AdditionalData) -> bool
[src]
fn le(&self, other: &AdditionalData) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AdditionalData) -> bool
[src]
fn gt(&self, other: &AdditionalData) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AdditionalData) -> bool
[src]
fn ge(&self, other: &AdditionalData) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for AdditionalData
[src]
impl Hash for AdditionalData
Auto Trait Implementations
impl Send for AdditionalData
impl Send for AdditionalData
impl Sync for AdditionalData
impl Sync for AdditionalData