var searchIndex = {}; searchIndex["pod"] = {"doc":"Provides traits that assist with I/O and byte slice conversions involving Plain Old Data.","items":[[0,"code","pod","I/O traits for POD and other types.",null,null],[3,"VecDecodeOptions","pod::code","Describes how to decode a `Vec<T>`",null,null],[12,"len","","Reads `Some(len)` items, or until EOF",0,null],[12,"options","","The options used to decode each individual item",0,null],[3,"StringDecodeOptions","","Describes how to decode a `String`",null,null],[12,"len","","Reads `Some(len)` bytes, or until EOF",1,null],[3,"CStringDecodeOptions","","Describes how to decode a `CString`",null,null],[12,"require_nul","","When true, errors if EOF is reached before a nul byte is found",2,null],[8,"Encode","","Encodes an value's binary representation to a `Write`.",null,null],[16,"Options","","Options that may be provided to affect how the value is encoded",3,null],[11,"encode","","Encodes to the `Write` with default options",3,null],[11,"encode_options","","Encodes to the `Write` with the provided options",3,null],[8,"Decode","","Decodes data from a `Read` into a new value.",null,null],[16,"Options","","Options will affect how the value is decoded, and may be used to provide any data that\nis normally lost during encoding.",4,null],[11,"decode","","Decodes from the `Read` with default options",4,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"decode_options","","Decodes from the `Read` with the provided options",4,{"inputs":[{"name":"r"},{"name":"options"}],"output":{"name":"result"}}],[11,"fmt","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"vecdecodeoptions"}}],[11,"clone","","",0,null],[11,"fmt","","",1,null],[11,"default","","",1,{"inputs":[],"output":{"name":"stringdecodeoptions"}}],[11,"clone","","",1,null],[11,"fmt","","",2,null],[11,"default","","",2,{"inputs":[],"output":{"name":"cstringdecodeoptions"}}],[11,"clone","","",2,null],[0,"endian","pod","Containers for primitives",null,null],[3,"EndianPrimitive","pod::endian","A POD container for a primitive that stores a value in the specified endianness\nin memory, and transforms on `get`/`set`",null,null],[6,"Le","","A type alias for little endian primitives",null,null],[6,"Be","","A type alias for big endian primitives",null,null],[8,"EndianConvert","","Describes a value that can be converted to and from a specified byte order.",null,null],[10,"from","","Converts a value from `B`",5,null],[10,"to","","Converts a value to `B`",5,null],[11,"new","","Creates a new value",6,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"get","","Transforms to the native value",6,null],[11,"set","","Transforms from a native value",6,null],[11,"default","","",6,{"inputs":[],"output":{"name":"self"}}],[11,"from","","",6,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"fmt","","",6,null],[11,"eq","","",6,null],[11,"hash","","",6,null],[11,"clone","","",6,null],[8,"Pod","pod","A marker trait indicating that a type is Plain Old Data.",null,null],[8,"PodType","","An unsafe marker trait that indicates a type can be used as Plain Old Data.",null,null],[8,"PodExt","","Helper methods for converting Plain Old Data types to/from byte slices and vectors",null,null],[11,"as_slice","","Borrows the POD as a byte slice",7,null],[11,"mut_slice","","Borrows the POD as a mutable byte slice",7,null],[11,"from_slice","","Borrows a new instance of the POD from a byte slice",7,null],[11,"from_mut_slice","","Borrows a mutable instance of the POD from a mutable byte slice",7,null],[11,"from_vec","","Converts a byte vector to a boxed instance of the POD type",7,{"inputs":[{"name":"vec"}],"output":{"name":"box"}}],[11,"from_box","","Converts a boxed slice to a boxed instance of the POD type",7,{"inputs":[{"name":"box"}],"output":{"name":"box"}}],[11,"as_slice","","Borrows the POD as a byte slice",7,null],[11,"mut_slice","","Borrows the POD as a mutable byte slice",7,null],[11,"from_slice","","Borrows a new instance of the POD from a byte slice",7,null],[11,"from_mut_slice","","Borrows a mutable instance of the POD from a mutable byte slice",7,null],[11,"from_vec","","Converts a byte vector to a boxed instance of the POD type",7,{"inputs":[{"name":"vec"}],"output":{"name":"box"}}],[11,"from_box","","Converts a boxed slice to a boxed instance of the POD type",7,{"inputs":[{"name":"box"}],"output":{"name":"box"}}]],"paths":[[3,"VecDecodeOptions"],[3,"StringDecodeOptions"],[3,"CStringDecodeOptions"],[8,"Encode"],[8,"Decode"],[8,"EndianConvert"],[3,"EndianPrimitive"],[8,"PodExt"]]}; initSearch(searchIndex);