Skip to content

Commit

Permalink
Add the string type
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jun 19, 2024
1 parent 9fb5306 commit 71ec5b4
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 85 deletions.
6 changes: 3 additions & 3 deletions projects/vos-types/src/encode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::encoder::Encoder;
/// Trait governing how types are encoded.
pub trait Encode {
/// Encode the given output.
fn encode<E>(&self, encoder: E) -> Result<E::Ok, E::Error>
fn encode<E>(&self, encoder: E) -> Result<E::Value, E::Error>
where
E: Encoder;
}
Expand All @@ -13,7 +13,7 @@ where
T: ?Sized + Encode,
{
#[inline]
fn encode<E>(&self, encoder: E) -> Result<E::Ok, E::Error>
fn encode<E>(&self, encoder: E) -> Result<E::Value, E::Error>
where
E: Encoder,
{
Expand All @@ -26,7 +26,7 @@ where
T: ?Sized + Encode,
{
#[inline]
fn encode<E>(&self, encoder: E) -> Result<E::Ok, E::Error>
fn encode<E>(&self, encoder: E) -> Result<E::Value, E::Error>
where
E: Encoder,
{
Expand Down
Loading

0 comments on commit 71ec5b4

Please sign in to comment.