v0.1.2: fix unimplemented todos...
This commit is contained in:
parent
b01cc2b6fa
commit
0474d88a67
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "byte_lamination"
|
name = "byte_lamination"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Olivier 'reivilibre'"]
|
authors = ["Olivier 'reivilibre'"]
|
||||||
repository = "https://git.emunest.net/reivilibre/byte_lamination.git"
|
repository = "https://git.emunest.net/reivilibre/byte_lamination.git"
|
||||||
|
|
|
@ -32,7 +32,7 @@ impl<'a, T> ByteLamination<'a> for Zstd<'a, T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.bytes.into_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
|
|
@ -8,7 +8,7 @@ impl<'a> ByteLamination<'a> for Cow<'a, [u8]> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.into_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
@ -22,7 +22,7 @@ impl<'a> ByteLamination<'a> for Vec<u8> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
@ -36,7 +36,7 @@ impl<'a> ByteLamination<'a> for String {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.into_bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
@ -53,7 +53,7 @@ impl<'a> ByteLamination<'a> for Cow<'a, str> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.into_owned().into_bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
|
|
@ -33,7 +33,7 @@ impl<'a, T> ByteLamination<'a> for SerdeBare<'a, T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.bytes.into_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
|
|
@ -33,7 +33,7 @@ impl<'a, T> ByteLamination<'a> for SerdeCbor<'a, T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_bytes(self) -> Vec<u8> {
|
fn into_bytes(self) -> Vec<u8> {
|
||||||
todo!()
|
self.bytes.into_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
|
||||||
|
|
Loading…
Reference in New Issue