Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Implement support for serializing Box<[u8]> and other pointers of [u8] #103

Closed
reem opened this issue Apr 30, 2015 · 2 comments
Closed

Implement support for serializing Box<[u8]> and other pointers of [u8] #103

reem opened this issue Apr 30, 2015 · 2 comments

Comments

@reem
Copy link

reem commented Apr 30, 2015

This should work basically the same as with Vec<u8>.

@reem reem changed the title Implement support for serializing Box<[u8]> and other smart pointers of [u8] Implement support for serializing Box<[u8]> and other pointers of [u8] Apr 30, 2015
@Parakleta
Copy link

Related to this, also add the reference generic:

impl<'a, T: ?Sized + ToJson> ToJson for &'a T {
    fn to_json(&self) -> Json { (**self).to_json() }
}

@alexcrichton
Copy link
Contributor

I'm going to close this now that this crate is deprecated in favor of serde. We're discontinuing feature development in rustc-serialize but will still continue to merge bug fixes if they arise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants