Skip to content

Commit 45092b5

Browse files
committed
doc
1 parent f5e58d7 commit 45092b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coord/nested.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ pub enum NestedValue<C, V> {
1212
}
1313

1414
impl<C, V> NestedValue<C, V> {
15+
/// Get the category of current nest value
1516
pub fn category(&self) -> &C {
1617
match self {
1718
NestedValue::Category(cat) => cat,
1819
NestedValue::Value(cat, _) => cat,
1920
}
2021
}
22+
/// Get the nested value from this value
2123
pub fn nested_value(&self) -> Option<&V> {
2224
match self {
2325
NestedValue::Category(_) => None,

0 commit comments

Comments
 (0)