Skip to content

No Encodable/Decodable implementation for type "char" #5817

Closed
@mneumann

Description

@mneumann

In libstd/serialize.rs, the following is missing:

impl<S:Encoder> Encodable<S> for char {
    fn encode(&self, s: &S) { s.emit_char(*self) }
}

impl<D:Decoder> Decodable<D> for char {
    fn decode(d: &D) ⟶  char {
        d.read_char()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions