Skip to content

pic16f877ccs/tuple_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library for determining the length of a tuple.

Return the length of a tuple.

Examples

Usage:

use tuple_length::TupLen;

assert_eq!(().len(), 0);
assert_eq!((1i8,).len(), 1);
assert_eq!((1u16, 2u64).len(), 2);
assert_eq!((1i8, 2usize, 3i64).len(), 3);

Supported tuple lengths

Possible length 8, 16, 32, 64. By default the selected operations are implemented to tuples upto a length of 8 elements.

Features

You can specify the length: features = ["16"] or features = ["32"] or features = ["64"].

About

Library for determining the length of a tuple.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages