SYMBOL INDEX (139 symbols across 5 files)
FILE: src/lib.rs
type ReadmeDoctests (line 9) | pub struct ReadmeDoctests;
type End (line 25) | pub enum End {}
type Cons (line 32) | pub struct Cons
(core::marker::PhantomData, Tail);
type Recurse (line 36) | pub struct Recurse(Tail);
FILE: src/one_of.rs
type OneOf (line 32) | pub struct OneOf {
function _send_sync_error_assert (line 37) | fn _send_sync_error_assert() {
type Target (line 57) | type Target = T;
method deref (line 59) | fn deref(&self) -> &T {
function from (line 68) | fn from(t: T) -> OneOf<(T,)> {
method clone (line 78) | fn clone(&self) -> Self {
function fmt (line 92) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
function fmt (line 102) | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
method source (line 112) | fn source(&self) -> Option<&(dyn Error + 'static)> {
function new (line 122) | pub fn new(t: T) -> OneOf
function narrow (line 136) | pub fn narrow(
function broaden (line 159) | pub fn broaden(self) -> OneOf
function subset (line 173) | pub fn subset(
function take (line 198) | pub fn take(self) -> Target
function to_enum (line 208) | pub fn to_enum(self) -> E::Enum
function as_enum (line 217) | pub fn as_enum<'a>(&'a self) -> E::EnumRef<'a>
FILE: src/one_of_to_enum.rs
function from (line 9) | fn from(one_of: OneOf<(A,)>) -> Self {
function from (line 18) | fn from(one_of: &'a OneOf<(A,)>) -> Self {
function from (line 28) | fn from(one_of: OneOf<(A, B)>) -> Self {
function from (line 42) | fn from(one_of: &'a OneOf<(A, B)>) -> Self {
function from (line 57) | fn from(one_of: OneOf<(A, B, C)>) -> Self {
function from (line 74) | fn from(one_of: &'a OneOf<(A, B, C)>) -> Self {
function from (line 92) | fn from(one_of: OneOf<(A, B, C, D)>) -> Self {
function from (line 112) | fn from(one_of: &'a OneOf<(A, B, C, D)>) -> Self {
function from (line 133) | fn from(one_of: OneOf<(A, B, C, D, E)>) -> Self {
function from (line 156) | fn from(one_of: &'a OneOf<(A, B, C, D, E)>) -> Self {
function from (line 180) | fn from(one_of: OneOf<(A, B, C, D, E, F)>) -> Self {
function from (line 207) | fn from(one_of: &'a OneOf<(A, B, C, D, E, F)>) -> Self {
function from (line 234) | fn from(one_of: OneOf<(A, B, C, D, E, F, G)>) -> Self {
function from (line 264) | fn from(one_of: &'a OneOf<(A, B, C, D, E, F, G)>) -> Self {
function from (line 294) | fn from(one_of: OneOf<(A, B, C, D, E, F, G, H)>) -> Self {
function from (line 327) | fn from(one_of: &'a OneOf<(A, B, C, D, E, F, G, H)>) -> Self {
function from (line 361) | fn from(one_of: OneOf<(A, B, C, D, E, F, G, H, I)>) -> Self {
function from (line 397) | fn from(one_of: &'a OneOf<(A, B, C, D, E, F, G, H, I)>) -> Self {
FILE: src/type_set.rs
type ErrorFold (line 10) | pub trait ErrorFold {
method source_fold (line 11) | fn source_fold(any: &Box) -> Option<&(dyn Error + 'static)>;
method provide_fold (line 14) | fn provide_fold<'a>(any: &'a Box, request: &mut std::error::R...
method source_fold (line 18) | fn source_fold(_: &Box) -> Option<&(dyn Error + 'static)> {
method provide_fold (line 23) | fn provide_fold<'a>(_: &Box, _: &mut std::error::Request<'a>) {
method source_fold (line 41) | fn source_fold(any: &Box) -> Option<&(dyn Error + 'static)> {
method provide_fold (line 50) | fn provide_fold<'a>(any: &'a Box, request: &mut std::error::R...
function fmt (line 66) | fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result {
method fmt (line 72) | fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result {
type DisplayFold (line 77) | pub trait DisplayFold {
method display_fold (line 78) | fn display_fold(any: &Box, formatter: &mut fmt::Formatter<'_>...
method display_fold (line 82) | fn display_fold(_: &Box, _: &mut fmt::Formatter<'_>) -> fmt::...
method display_fold (line 93) | fn display_fold(any: &Box, formatter: &mut fmt::Formatter<'_>...
type DebugFold (line 104) | pub trait DebugFold {
method debug_fold (line 105) | fn debug_fold(any: &Box, formatter: &mut fmt::Formatter<'_>) ...
method debug_fold (line 109) | fn debug_fold(_: &Box, _: &mut fmt::Formatter<'_>) -> fmt::Re...
method debug_fold (line 120) | fn debug_fold(any: &Box, formatter: &mut fmt::Formatter<'_>) ...
type CloneFold (line 131) | pub trait CloneFold {
method clone_fold (line 132) | fn clone_fold(any: &Box) -> Box;
method clone_fold (line 152) | fn clone_fold(_: &Box) -> Box {
method clone_fold (line 162) | fn clone_fold(any: &Box) -> Box {
method clone (line 136) | fn clone(&self) -> End {
method clone (line 146) | fn clone(&self) -> Self {
function _clone_test (line 171) | fn _clone_test() {
type IsFold (line 181) | pub trait IsFold {
method is_fold (line 182) | fn is_fold(any: &Box) -> bool;
method is_fold (line 186) | fn is_fold(_: &Box) -> bool {
method is_fold (line 196) | fn is_fold(any: &Box) -> bool {
type TypeSet (line 207) | pub trait TypeSet {
type Variants (line 216) | type Variants = End;
type Enum (line 217) | type Enum = E0;
type EnumRef (line 218) | type EnumRef<'a> = E0 where Self: 'a;
type Variants (line 222) | type Variants = Cons;
type Enum (line 223) | type Enum = E1;
type EnumRef (line 224) | type EnumRef<'a> = E1<&'a A> where Self: 'a;
type Variants (line 228) | type Variants = Cons>;
type Enum (line 229) | type Enum = E2;
type EnumRef (line 230) | type EnumRef<'a> = E2<&'a A, &'a B> where Self: 'a;
type Variants (line 234) | type Variants = Cons>>;
type Enum (line 235) | type Enum = E3;
type EnumRef (line 236) | type EnumRef<'a> = E3<&'a A, &'a B, &'a C> where Self: 'a;
type Variants (line 240) | type Variants = Cons>>>;
type Enum (line 241) | type Enum = E4;
type EnumRef (line 242) | type EnumRef<'a> = E4<&'a A, &'a B, &'a C, &'a D> where Self: 'a;
type Variants (line 246) | type Variants = Cons>>>>;
type Enum (line 247) | type Enum = E5;
type EnumRef (line 248) | type EnumRef<'a> = E5<&'a A, &'a B, &'a C, &'a D, &'a E> where Self: 'a;
type Variants (line 252) | type Variants = Cons>>...
type Enum (line 253) | type Enum = E6;
type EnumRef (line 254) | type EnumRef<'a> = E6<&'a A, &'a B, &'a C, &'a D, &'a E, &'a F> where ...
type Variants (line 258) | type Variants = Cons;
type EnumRef (line 260) | type EnumRef<'a> = E7<&'a A, &'a B, &'a C, &'a D, &'a E, &'a F, &'a G>...
type Variants (line 264) | type Variants = Cons;
type EnumRef (line 266) | type EnumRef<'a> = E8<&'a A, &'a B, &'a C, &'a D, &'a E, &'a F, &'a G,...
type Variants (line 270) | type Variants =
type Enum (line 272) | type Enum = E9;
type EnumRef (line 273) | type EnumRef<'a> = E9<&'a A, &'a B, &'a C, &'a D, &'a E, &'a F, &'a G,...
type TupleForm (line 278) | pub trait TupleForm {
type Tuple (line 283) | type Tuple = ();
type Tuple (line 287) | type Tuple = (A,);
type Tuple (line 291) | type Tuple = (A, B);
type Tuple (line 295) | type Tuple = (A, B, C);
type Tuple (line 299) | type Tuple = (A, B, C, D);
type Tuple (line 303) | type Tuple = (A, B, C, D, E);
type Tuple (line 307) | type Tuple = (A, B, C, D, E, F);
type Tuple (line 313) | type Tuple = (A, B, C, D, E, F, G);
type Tuple (line 319) | type Tuple = (A, B, C, D, E, F, G, H);
type Tuple (line 325) | type Tuple = (A, B, C, D, E, F, G, H, I);
type E0 (line 330) | pub enum E0 {}
type E1 (line 331) | pub enum E1 {
function from (line 335) | fn from(a: A) -> E1 {
type E2 (line 339) | pub enum E2 {
type E3 (line 343) | pub enum E3 {
type E4 (line 348) | pub enum E4 {
type E5 (line 354) | pub enum E5 {
type E6 (line 361) | pub enum E6 {
type E7 (line 369) | pub enum E7 {
type E8 (line 378) | pub enum E8 {
type E9 (line 388) | pub enum E9 {
type Contains (line 406) | pub trait Contains {}
type Narrow (line 421) | pub trait Narrow: TupleForm {
type Remainder (line 431) | type Remainder = Tail;
type Remainder (line 442) | type Remainder = Cons>::Remainder>;
function _narrow_test (line 445) | fn _narrow_test() {
type SupersetOf (line 461) | pub trait SupersetOf {
type Remainder (line 467) | type Remainder = T;
type Remainder (line 479) | type Remainder =
function _superset_test (line 486) | fn _superset_test() {
FILE: tests/usability.rs
type NotEnoughMemory (line 4) | struct NotEnoughMemory;
type Timeout (line 7) | struct Timeout;
type RetriesExhausted (line 10) | struct RetriesExhausted;
function retry (line 13) | fn retry() {
function does_stuff (line 38) | fn does_stuff() -> Result<(), OneOf<(NotEnoughMemory, Timeout)>> {
function allocates (line 54) | fn allocates() -> Result<(), OneOf<(NotEnoughMemory,)>> {
function chats (line 62) | fn chats() -> Result<(), Timeout> {
function smoke (line 67) | fn smoke() {
function debug (line 96) | fn debug() {
function multi_match (line 121) | fn multi_match() {
function multi_narrow (line 146) | fn multi_narrow() {