@@ -5,8 +5,7 @@ use crate::repr::Decor;
5
5
use crate :: table:: { Iter , IterMut , KeyValuePairs , TableLike } ;
6
6
use crate :: { InternalString , Item , KeyMut , RawString , Table , Value } ;
7
7
8
- /// Type representing a TOML inline table,
9
- /// payload of the `Value::InlineTable` variant
8
+ /// A TOML [`Value`] that contains a collection of [`Key`]/[`Value`] pairs
10
9
#[ derive( Debug , Default , Clone ) ]
11
10
pub struct InlineTable {
12
11
// `preamble` represents whitespaces in an empty table
@@ -511,11 +510,11 @@ fn decorate_inline_table(table: &mut InlineTable) {
511
510
}
512
511
}
513
512
514
- /// An owned iterator type over key/value pairs of an inline table.
513
+ /// An owned iterator type over an [`InlineTable`]'s [`Key`]/[`Value`] pairs
515
514
pub type InlineTableIntoIter = Box < dyn Iterator < Item = ( InternalString , Value ) > > ;
516
- /// An iterator type over key/value pairs of an inline table.
515
+ /// An iterator type over [`InlineTable`]'s [`Key`]/[`Value`] pairs
517
516
pub type InlineTableIter < ' a > = Box < dyn Iterator < Item = ( & ' a str , & ' a Value ) > + ' a > ;
518
- /// A mutable iterator type over key/value pairs of an inline table.
517
+ /// A mutable iterator type over [`InlineTable`]'s [`Key`]/[`Value`] pairs
519
518
pub type InlineTableIterMut < ' a > = Box < dyn Iterator < Item = ( KeyMut < ' a > , & ' a mut Value ) > + ' a > ;
520
519
521
520
impl TableLike for InlineTable {
@@ -613,7 +612,7 @@ impl TableLike for InlineTable {
613
612
// `{ key1 = value1, ... }`
614
613
pub ( crate ) const DEFAULT_INLINE_KEY_DECOR : ( & str , & str ) = ( " " , " " ) ;
615
614
616
- /// A view into a single location in a map , which may be vacant or occupied.
615
+ /// A view into a single location in an [`InlineTable`] , which may be vacant or occupied.
617
616
pub enum InlineEntry < ' a > {
618
617
/// An occupied Entry.
619
618
Occupied ( InlineOccupiedEntry < ' a > ) ,
@@ -659,7 +658,7 @@ impl<'a> InlineEntry<'a> {
659
658
}
660
659
}
661
660
662
- /// A view into a single occupied location in a `IndexMap` .
661
+ /// A view into a single occupied location in an [`InlineTable`] .
663
662
pub struct InlineOccupiedEntry < ' a > {
664
663
entry : indexmap:: map:: OccupiedEntry < ' a , Key , Item > ,
665
664
}
@@ -714,7 +713,7 @@ impl<'a> InlineOccupiedEntry<'a> {
714
713
}
715
714
}
716
715
717
- /// A view into a single empty location in a `IndexMap` .
716
+ /// A view into a single empty location in an [`InlineTable`] .
718
717
pub struct InlineVacantEntry < ' a > {
719
718
entry : indexmap:: map:: VacantEntry < ' a , Key , Item > ,
720
719
}
0 commit comments