Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for prefixes to the FromHex trait #58

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 49 additions & 3 deletions api/all-features.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,55 @@
#[non_exhaustive] pub enum hex_conservative::parse::PrefixedError<E>
#[non_exhaustive] pub struct hex_conservative::parse::MissingPrefixError(_)
impl core::clone::Clone for hex_conservative::Case
impl core::clone::Clone for hex_conservative::HexToArrayError
impl core::clone::Clone for hex_conservative::HexToBytesError
impl core::clone::Clone for hex_conservative::parse::MissingPrefixError
impl core::cmp::Eq for hex_conservative::Case
impl core::cmp::Eq for hex_conservative::HexToArrayError
impl core::cmp::Eq for hex_conservative::HexToBytesError
impl core::cmp::Eq for hex_conservative::parse::MissingPrefixError
impl core::cmp::PartialEq for hex_conservative::Case
impl core::cmp::PartialEq for hex_conservative::HexToArrayError
impl core::cmp::PartialEq for hex_conservative::HexToBytesError
impl core::cmp::PartialEq for hex_conservative::parse::MissingPrefixError
impl core::convert::From<hex_conservative::HexToBytesError> for hex_conservative::HexToArrayError
impl core::default::Default for hex_conservative::Case
impl core::error::Error for hex_conservative::HexToArrayError
impl core::error::Error for hex_conservative::HexToBytesError
impl core::error::Error for hex_conservative::parse::MissingPrefixError
impl core::fmt::Debug for hex_conservative::Case
impl core::fmt::Debug for hex_conservative::HexToArrayError
impl core::fmt::Debug for hex_conservative::HexToBytesError
impl core::fmt::Debug for hex_conservative::parse::MissingPrefixError
impl core::fmt::Display for hex_conservative::HexToArrayError
impl core::fmt::Display for hex_conservative::HexToBytesError
impl core::fmt::Display for hex_conservative::parse::MissingPrefixError
impl core::hash::Hash for hex_conservative::Case
impl core::marker::Copy for hex_conservative::Case
impl core::marker::Send for hex_conservative::Case
impl core::marker::Send for hex_conservative::HexToArrayError
impl core::marker::Send for hex_conservative::HexToBytesError
impl core::marker::Send for hex_conservative::parse::MissingPrefixError
impl core::marker::StructuralPartialEq for hex_conservative::Case
impl core::marker::StructuralPartialEq for hex_conservative::HexToArrayError
impl core::marker::StructuralPartialEq for hex_conservative::HexToBytesError
impl core::marker::StructuralPartialEq for hex_conservative::parse::MissingPrefixError
impl core::marker::Sync for hex_conservative::Case
impl core::marker::Sync for hex_conservative::HexToArrayError
impl core::marker::Sync for hex_conservative::HexToBytesError
impl core::marker::Sync for hex_conservative::parse::MissingPrefixError
impl core::marker::Unpin for hex_conservative::Case
impl core::marker::Unpin for hex_conservative::HexToArrayError
impl core::marker::Unpin for hex_conservative::HexToBytesError
impl core::marker::Unpin for hex_conservative::parse::MissingPrefixError
impl core::panic::unwind_safe::RefUnwindSafe for hex_conservative::Case
impl core::panic::unwind_safe::RefUnwindSafe for hex_conservative::HexToArrayError
impl core::panic::unwind_safe::RefUnwindSafe for hex_conservative::HexToBytesError
impl core::panic::unwind_safe::RefUnwindSafe for hex_conservative::parse::MissingPrefixError
impl core::panic::unwind_safe::UnwindSafe for hex_conservative::Case
impl core::panic::unwind_safe::UnwindSafe for hex_conservative::HexToArrayError
impl core::panic::unwind_safe::UnwindSafe for hex_conservative::HexToBytesError
impl core::panic::unwind_safe::UnwindSafe for hex_conservative::parse::MissingPrefixError
impl hex_conservative::parse::FromHex for [u8; 10]
impl hex_conservative::parse::FromHex for [u8; 128]
impl hex_conservative::parse::FromHex for [u8; 12]
Expand Down Expand Up @@ -114,6 +128,19 @@ impl<'a> hex_conservative::display::DisplayHex for &'a [u8; 9]
impl<'a> hex_conservative::display::DisplayHex for &'a [u8]
impl<'a> hex_conservative::display::DisplayHex for &'a alloc::vec::Vec<u8>
impl<'a> std::io::Read for hex_conservative::HexToBytesIter<'a>
impl<E: core::clone::Clone> core::clone::Clone for hex_conservative::parse::PrefixedError<E>
impl<E: core::cmp::Eq> core::cmp::Eq for hex_conservative::parse::PrefixedError<E>
impl<E: core::cmp::PartialEq> core::cmp::PartialEq for hex_conservative::parse::PrefixedError<E>
impl<E: core::fmt::Debug> core::fmt::Debug for hex_conservative::parse::PrefixedError<E>
impl<E: core::fmt::Display> core::fmt::Display for hex_conservative::parse::PrefixedError<E>
impl<E> core::convert::From<E> for hex_conservative::parse::PrefixedError<E>
impl<E> core::error::Error for hex_conservative::parse::PrefixedError<E> where E: core::error::Error + 'static
impl<E> core::marker::Send for hex_conservative::parse::PrefixedError<E> where E: core::marker::Send
impl<E> core::marker::StructuralPartialEq for hex_conservative::parse::PrefixedError<E>
impl<E> core::marker::Sync for hex_conservative::parse::PrefixedError<E> where E: core::marker::Sync
impl<E> core::marker::Unpin for hex_conservative::parse::PrefixedError<E> where E: core::marker::Unpin
impl<E> core::panic::unwind_safe::RefUnwindSafe for hex_conservative::parse::PrefixedError<E> where E: core::panic::unwind_safe::RefUnwindSafe
impl<E> core::panic::unwind_safe::UnwindSafe for hex_conservative::parse::PrefixedError<E> where E: core::panic::unwind_safe::UnwindSafe
impl<I> core::iter::traits::double_ended::DoubleEndedIterator for hex_conservative::BytesToHexIter<I> where I: core::iter::traits::double_ended::DoubleEndedIterator + core::iter::traits::iterator::Iterator<Item = u8>
impl<I> core::iter::traits::exact_size::ExactSizeIterator for hex_conservative::BytesToHexIter<I> where I: core::iter::traits::exact_size::ExactSizeIterator + core::iter::traits::iterator::Iterator<Item = u8>
impl<I> core::iter::traits::iterator::Iterator for hex_conservative::BytesToHexIter<I> where I: core::iter::traits::iterator::Iterator<Item = u8>
Expand Down Expand Up @@ -204,7 +231,10 @@ pub fn hex_conservative::DisplayHex::to_hex_string(self, case: hex_conservative:
pub fn hex_conservative::DisplayHex::to_lower_hex_string(self) -> alloc::string::String
pub fn hex_conservative::DisplayHex::to_upper_hex_string(self) -> alloc::string::String
pub fn hex_conservative::FromHex::from_byte_iter<I>(iter: I) -> core::result::Result<Self, Self::Error> where I: core::iter::traits::iterator::Iterator<Item = core::result::Result<u8, hex_conservative::HexToBytesError>> + core::iter::traits::exact_size::ExactSizeIterator + core::iter::traits::double_ended::DoubleEndedIterator
pub fn hex_conservative::FromHex::from_hex(s: &str) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::FromHex::from_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::FromHex::from_maybe_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::FromHex::from_no_prefix_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::FromHex::from_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, hex_conservative::parse::PrefixedError<Self::Error>>
pub fn hex_conservative::HexToArrayError::clone(&self) -> hex_conservative::HexToArrayError
pub fn hex_conservative::HexToArrayError::eq(&self, other: &hex_conservative::HexToArrayError) -> bool
pub fn hex_conservative::HexToArrayError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
Expand Down Expand Up @@ -238,15 +268,29 @@ pub fn hex_conservative::display::DisplayHex::to_hex_string(self, case: hex_cons
pub fn hex_conservative::display::DisplayHex::to_lower_hex_string(self) -> alloc::string::String
pub fn hex_conservative::display::DisplayHex::to_upper_hex_string(self) -> alloc::string::String
pub fn hex_conservative::parse::FromHex::from_byte_iter<I>(iter: I) -> core::result::Result<Self, Self::Error> where I: core::iter::traits::iterator::Iterator<Item = core::result::Result<u8, hex_conservative::HexToBytesError>> + core::iter::traits::exact_size::ExactSizeIterator + core::iter::traits::double_ended::DoubleEndedIterator
pub fn hex_conservative::parse::FromHex::from_hex(s: &str) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::parse::FromHex::from_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::parse::FromHex::from_maybe_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::parse::FromHex::from_no_prefix_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::parse::FromHex::from_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, hex_conservative::parse::PrefixedError<Self::Error>>
pub fn hex_conservative::parse::MissingPrefixError::clone(&self) -> hex_conservative::parse::MissingPrefixError
pub fn hex_conservative::parse::MissingPrefixError::eq(&self, other: &hex_conservative::parse::MissingPrefixError) -> bool
pub fn hex_conservative::parse::MissingPrefixError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn hex_conservative::parse::PrefixedError<E>::clone(&self) -> hex_conservative::parse::PrefixedError<E>
pub fn hex_conservative::parse::PrefixedError<E>::eq(&self, other: &hex_conservative::parse::PrefixedError<E>) -> bool
pub fn hex_conservative::parse::PrefixedError<E>::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn hex_conservative::parse::PrefixedError<E>::from(e: E) -> Self
pub fn hex_conservative::parse::PrefixedError<E>::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
pub fn hex_conservative::prelude::DisplayHex::append_hex_to_string(self, case: hex_conservative::Case, string: &mut alloc::string::String)
pub fn hex_conservative::prelude::DisplayHex::as_hex(self) -> Self::Display
pub fn hex_conservative::prelude::DisplayHex::hex_reserve_suggestion(self) -> usize
pub fn hex_conservative::prelude::DisplayHex::to_hex_string(self, case: hex_conservative::Case) -> alloc::string::String
pub fn hex_conservative::prelude::DisplayHex::to_lower_hex_string(self) -> alloc::string::String
pub fn hex_conservative::prelude::DisplayHex::to_upper_hex_string(self) -> alloc::string::String
pub fn hex_conservative::prelude::FromHex::from_byte_iter<I>(iter: I) -> core::result::Result<Self, Self::Error> where I: core::iter::traits::iterator::Iterator<Item = core::result::Result<u8, hex_conservative::HexToBytesError>> + core::iter::traits::exact_size::ExactSizeIterator + core::iter::traits::double_ended::DoubleEndedIterator
pub fn hex_conservative::prelude::FromHex::from_hex(s: &str) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::prelude::FromHex::from_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::prelude::FromHex::from_maybe_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::prelude::FromHex::from_no_prefix_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, Self::Error>
pub fn hex_conservative::prelude::FromHex::from_prefixed_hex<S: core::convert::AsRef<str> + core::convert::Into<alloc::string::String>>(s: S) -> core::result::Result<Self, hex_conservative::parse::PrefixedError<Self::Error>>
pub fn hex_conservative::serde::deserialize<'de, D, T>(d: D) -> core::result::Result<T, <D as serde::de::Deserializer>::Error> where D: serde::de::Deserializer<'de>, T: serde::de::Deserialize<'de> + hex_conservative::parse::FromHex
pub fn hex_conservative::serde::serialize<S, T>(data: T, s: S) -> core::result::Result<<S as serde::ser::Serializer>::Ok, <S as serde::ser::Serializer>::Error> where S: serde::ser::Serializer, T: serde::ser::Serialize + hex_conservative::display::DisplayHex
pub fn hex_conservative::serde::serialize_lower<S, T>(data: T, serializer: S) -> core::result::Result<<S as serde::ser::Serializer>::Ok, <S as serde::ser::Serializer>::Error> where S: serde::ser::Serializer, T: serde::ser::Serialize + hex_conservative::display::DisplayHex
Expand All @@ -261,6 +305,8 @@ pub hex_conservative::parse::HexToArrayError::Conversion(hex_conservative::HexTo
pub hex_conservative::parse::HexToArrayError::InvalidLength(InvalidLengthError)
pub hex_conservative::parse::HexToBytesError::InvalidChar(InvalidCharError)
pub hex_conservative::parse::HexToBytesError::OddLengthString(OddLengthStringError)
pub hex_conservative::parse::PrefixedError::MissingPrefix(hex_conservative::parse::MissingPrefixError)
pub hex_conservative::parse::PrefixedError::ParseHex(E)
pub macro hex_conservative::display::fmt_hex_exact!
pub macro hex_conservative::fmt_hex_exact!
pub macro hex_conservative::test_hex_unwrap!
Expand Down
Loading
Loading