Skip to main content

ps_ecc/cow/implementations/
deref.rs

1use std::ops::Deref;
2
3use crate::Cow;
4
5impl Deref for Cow<'_> {
6    type Target = [u8];
7
8    fn deref(&self) -> &Self::Target {
9        match self {
10            Self::Borrowed(value) => value,
11            Self::Owned(value) => value,
12        }
13    }
14}