[−][src]Struct to_binary::ToBinary
Conversion To Binary
The ToBinary
Struct is used to convert from one data type to binary strings
, or a string that only contains 0
and 1
Implementations
impl ToBinary
[src]
pub fn from_slice(byte_slice: &[u8]) -> String
[src]
pub fn from_vector(bytes: Vec<u8>) -> String
[src]
pub fn from_string(n: String) -> String
[src]
pub fn from_hex<T: AsRef<str>>(n: T) -> Result<String, FromHexError>
[src]
pub fn from_str(n: &str) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for ToBinary
impl Send for ToBinary
impl Sync for ToBinary
impl Unpin for ToBinary
impl UnwindSafe for ToBinary
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,