var searchIndex = {}; searchIndex["optional"] = {"doc":"Space-efficient optional values","items":[[3,"Optioned","optional","An Option<T>-like structure that takes only as much space as the enclosed\nvalue, at the cost of removing one particular None value from the value \ndomain (see Noned)",null,null],[3,"OptionedIter","","",null,null],[4,"OptionBool","","The `OptionBool` type, a space-efficient Option<bool> replacement",null,null],[13,"SomeTrue","","Some(true)",0,null],[13,"SomeFalse","","Some(false)",0,null],[13,"None","","None",0,null],[8,"Noned","","A trait whose implementation for any type `T` allows the use of\n`Optioned<T>` where `T` is bound by both `Sized` and `Copy`.",null,null],[10,"is_none","","Returns `true` if the contained value is the declared `None` for `T`,\n`false` otherwise.",1,null],[10,"get_none","","Returns the declared `None` value for `T`.",1,{"inputs":[],"output":{"name":"self"}}],[11,"hash","","",0,null],[11,"cmp","","",0,null],[11,"clone","","",0,null],[11,"deref","","",0,null],[11,"eq","","",0,null],[11,"partial_cmp","","",0,null],[11,"some","","Create a SomeTrue for true, SomeFalse for false",0,{"inputs":[{"name":"bool"}],"output":{"name":"self"}}],[11,"none","","Create a None value.",0,{"inputs":[],"output":{"name":"self"}}],[11,"is_some","","Returns true if the option is a Some value.",0,null],[11,"is_none","","Returns true if the option is a Some value.",0,null],[11,"expect","","Unwraps the contained bool, panics on None with given message.",0,null],[11,"unwrap","","Unwraps the contained bool, panics on None.",0,null],[11,"unwrap_or","","Returns the contained bool or a default.",0,null],[11,"unwrap_or_else","","Returns the contained bool or a computed default.",0,null],[11,"map","","Maps an OptionBool to an Option<U> by applying the function over the\n contained bool.",0,null],[11,"map_bool","","Maps an OptionBool to another OptionBool by applying the function over\n the contained bool.",0,null],[11,"map_or","","Maps a value to a U by applying the function or return a default U.",0,null],[11,"map_or_else","","Maps a value to a U by applying the function or return a computed\n default.",0,null],[11,"ok_or","","Transforms the `OptionBool` into a `Result<bool, E>`, mapping `Some`X to\n `Ok(`X`)` and `None` to `Err(err)`.",0,null],[11,"ok_or_else","","Transforms the `OptionBool` into a `Result<bool, E>`, mapping `Some`X to\n `Ok(`X`)` and `None` to a calculated `Err(err)`.",0,null],[11,"and","","Returns `None` if the option is `None`, otherwise returns `optb`.",0,null],[11,"and_bool","","Returns `None` if the option is `None`, otherwise returns `optb`.",0,null],[11,"and_then","","",0,null],[11,"and_then_bool","","",0,null],[11,"or","","Returns this as Option unless this is `None`, in which case returns\n `optb`.",0,null],[11,"or_bool","","Returns this as Option unless this is `None`, in which case returns\n `optb`.",0,null],[11,"or_else","","Returns this as Option unless this is `None`, in which case use the\n supplied function to calculate the result.",0,null],[11,"or_else_bool","","Returns this as Option unless this is `None`, in which case use the\n supplied function to calculate the result.",0,null],[11,"iter","","return an iterator over all contained (that is zero or one) values.",0,null],[11,"as_slice","","return a possibly empty slice with the contained value, if any.",0,null],[11,"take","","Takes the value out of the `OptionBool` and returns ist as\n `Option<bool>`, changing self to `None`.",0,null],[11,"take_bool","","Takes the value out of the `OptionBool`, changing self to `None`.",0,null],[11,"fmt","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"optionbool"}}],[11,"from","","",0,{"inputs":[{"name":"option"}],"output":{"name":"self"}}],[11,"from","","",0,{"inputs":[{"name":"option"}],"output":{"name":"self"}}],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"some","","Create an `Optioned<T>` that is `some(t)`.",2,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"none","","Create an `Optioned<T>` that is `none()`.",2,{"inputs":[],"output":{"name":"self"}}],[11,"is_none","","Returns `true` if this `Optioned` is `None`, `false` otherwise.",2,null],[11,"is_some","","Returns `true` if this `Optioned` contains a value, `false` otherwise.",2,null],[11,"expect","","Unwraps the value, if any, else panics with the given message.",2,null],[11,"unwrap","","Unwraps the value, if any, else panics with "unwrap called on None".",2,null],[11,"unwrap_or","","",2,null],[11,"unwrap_or_else","","",2,null],[11,"map","","",2,null],[11,"map_t","","",2,null],[11,"map_or","","",2,null],[11,"map_or_else","","",2,null],[11,"take","","",2,null],[11,"as_slice","","Return a possibly empty slice over the contained value, if any.",2,null],[11,"iter","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",3,null],[11,"next","","",3,null],[11,"from","","",2,{"inputs":[{"name":"option"}],"output":{"name":"optioned"}}],[11,"from","","",2,{"inputs":[{"name":"option"}],"output":{"name":"optioned"}}],[11,"into","","",2,null]],"paths":[[4,"OptionBool"],[8,"Noned"],[3,"Optioned"],[3,"OptionedIter"]]}; initSearch(searchIndex);