pub struct IsLabel<T>(pub T);Expand description
Identify a byte slice as a label, which requires this not be user controlled data.
We use Borrow<[u8]> so that IsLabel<[u8; N]>, IsLabel<&[u8]>,
IsLabel<[u8]>, etc. all work correctly. AsRef would permit the
IsLabel<str>, which maybe non-cannonical and cause breakage.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Borrow<[u8]>> IntoTranscript for IsLabel<T>
impl<T: Borrow<[u8]>> IntoTranscript for IsLabel<T>
type Taken = Transcript
fn into_transcript(self) -> Transcript
Auto Trait Implementations§
impl<T> Freeze for IsLabel<T>where
T: Freeze,
impl<T> RefUnwindSafe for IsLabel<T>where
T: RefUnwindSafe,
impl<T> Send for IsLabel<T>where
T: Send,
impl<T> Sync for IsLabel<T>where
T: Sync,
impl<T> Unpin for IsLabel<T>where
T: Unpin,
impl<T> UnwindSafe for IsLabel<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more