Skip to content

Instantly share code, notes, and snippets.

@Aceeri
Created November 26, 2016 23:38
Show Gist options
  • Select an option

  • Save Aceeri/f85cad5cd4dc8dcfb03a182a2e1b1f13 to your computer and use it in GitHub Desktop.

Select an option

Save Aceeri/f85cad5cd4dc8dcfb03a182a2e1b1f13 to your computer and use it in GitHub Desktop.
trait Serializer<T> {
/// Serialize a part of the world into a buffer.
fn serialize(&World, &mut T) { }
/// Deserialize a part of the world from a buffer.
fn deserialize(&mut World, &T) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment