Skip to content

Commit 755413a

Browse files
Added a tautological bound to NestedTupleref
1 parent 2508cb8 commit 755413a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tuplities-flatten-nest/src/nested_ref.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
//! Module providing reference accessors for nested tuples (nested tuples -> nested tuples of references).
22
3+
use crate::IntoNestedTupleOption;
4+
35
/// Trait to obtain a nested tuple of references from a nested tuple of values.
46
pub trait NestedTupleRef {
57
/// The nested tuple type containing references to each leaf value.
6-
type Ref<'a>: Copy
8+
type Ref<'a>: Copy + IntoNestedTupleOption
79
where
810
Self: 'a;
911

0 commit comments

Comments
 (0)