var searchIndex = {}; searchIndex["pod"] = {"doc":"Provides traits that assist with I/O and byte slice conversions involving\nPlain Old Data.","items":[[8,"Pod","pod","A marker trait indicating that a type is Plain Old Data.",null,null],[11,"as_aligned_mut","","Safely borrows the aligned value mutably",0,null],[11,"from_unaligned_mut","","Safely borrows the unaligned value mutably",0,{"inputs":[{"name":"t"}],"output":{"name":"option"}}],[11,"from_unaligned","","Safely converts an unaligned value to its aligned equivalent",0,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"as_bytes","","Borrows the POD as a byte slice",0,null],[11,"as_mut_bytes","","Borrows the POD as a mutable byte slice",0,null],[11,"from_bytes","","Safely creates a POD value from a potentially unaligned slice",0,null],[11,"from_bytes_ref","","Borrows a new instance of the POD from a byte slice",0,null],[11,"from_bytes_mut","","Borrows a mutable instance of the POD from a mutable byte slice",0,null],[11,"from_vec","","Converts a byte vector to a boxed instance of the POD type",0,{"inputs":[{"name":"vec"}],"output":{"name":"result"}}],[11,"from_box","","Converts a boxed slice to a boxed instance of the POD type",0,{"inputs":[{"name":"box"}],"output":{"name":"result"}}],[11,"into_vec","","Converts a boxed POD to a byte vector",0,{"inputs":[{"name":"box"}],"output":{"name":"vec"}}],[11,"into_boxed_slice","","Converts a boxed POD to a boxed slice",0,{"inputs":[{"name":"box"}],"output":{"name":"box"}}],[11,"map","","Converts a POD type from one to another of the same size.",0,null],[11,"map_mut","","Converts a POD type from one to another of the same size.",0,null],[11,"uninitialized","","Generates a new uninitialized instance of a POD type.",0,{"inputs":[],"output":{"name":"self"}}],[11,"zeroed","","Creates a new zeroed instance of a POD type.",0,{"inputs":[],"output":{"name":"self"}}],[11,"map_slice","","Maps a POD slice from one type to another",0,null],[11,"map_slice_mut","","Maps a mutable POD slice from one type to another",0,null],[8,"PodReadExt","","An extension trait for reading `Pod` types from `std::io::Read` data streams.",null,null],[10,"read_pod","","Reads a `Pod` struct from the stream. Behaves like `read_exact`, and will\nproduce an error if EOF is encountered before the data is fully read.",1,null],[10,"read_pod_or_none","","Reads a `Pod` struct from the stream, or nothing at EOF. Partial reads\nwill result in an error.",1,null],[8,"PodWriteExt","","An extension trait for writing `Pod` types to `std::io::Write` data streams.",null,null],[10,"write_pod","","Writes the memory representation of a `Pod` struct to the stream.\nBehaves like `write_all`, failure to write the entire structure will\nresult in an error.",2,null],[11,"as_aligned_mut","","Safely borrows the aligned value mutably",0,null],[11,"from_unaligned_mut","","Safely borrows the unaligned value mutably",0,{"inputs":[{"name":"t"}],"output":{"name":"option"}}],[11,"from_unaligned","","Safely converts an unaligned value to its aligned equivalent",0,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"as_bytes","","Borrows the POD as a byte slice",0,null],[11,"as_mut_bytes","","Borrows the POD as a mutable byte slice",0,null],[11,"from_bytes","","Safely creates a POD value from a potentially unaligned slice",0,null],[11,"from_bytes_ref","","Borrows a new instance of the POD from a byte slice",0,null],[11,"from_bytes_mut","","Borrows a mutable instance of the POD from a mutable byte slice",0,null],[11,"from_vec","","Converts a byte vector to a boxed instance of the POD type",0,{"inputs":[{"name":"vec"}],"output":{"name":"result"}}],[11,"from_box","","Converts a boxed slice to a boxed instance of the POD type",0,{"inputs":[{"name":"box"}],"output":{"name":"result"}}],[11,"into_vec","","Converts a boxed POD to a byte vector",0,{"inputs":[{"name":"box"}],"output":{"name":"vec"}}],[11,"into_boxed_slice","","Converts a boxed POD to a boxed slice",0,{"inputs":[{"name":"box"}],"output":{"name":"box"}}],[11,"map","","Converts a POD type from one to another of the same size.",0,null],[11,"map_mut","","Converts a POD type from one to another of the same size.",0,null],[11,"uninitialized","","Generates a new uninitialized instance of a POD type.",0,{"inputs":[],"output":{"name":"self"}}],[11,"zeroed","","Creates a new zeroed instance of a POD type.",0,{"inputs":[],"output":{"name":"self"}}],[11,"map_slice","","Maps a POD slice from one type to another",0,null],[11,"map_slice_mut","","Maps a mutable POD slice from one type to another",0,null]],"paths":[[8,"Pod"],[8,"PodReadExt"],[8,"PodWriteExt"]]}; initSearch(searchIndex);