@@ -197,9 +197,9 @@ pub enum SetOrTransition<S, T> {
197
197
/// }
198
198
/// ```
199
199
pub trait IndepStateKey {
200
- /// KeyType
200
+ /// stub ` KeyType`
201
201
type KeyType : PartialEq + Hash ;
202
- /// key
202
+ /// stub key
203
203
fn key ( & self ) -> Self :: KeyType ;
204
204
}
205
205
@@ -220,19 +220,19 @@ pub enum SetTransAction<'a, S: IndepStateKey, T> {
220
220
}
221
221
222
222
impl < T > Action < T > {
223
- /// as_inner
223
+ /// stub ` as_inner`
224
224
pub fn as_inner ( & self ) -> & T {
225
225
match self {
226
226
Action :: Do ( a) | Action :: Undo ( a) => a,
227
227
}
228
228
}
229
- /// as_inner_mut
229
+ /// stub ` as_inner_mut`
230
230
pub fn as_inner_mut ( & mut self ) -> & mut T {
231
231
match self {
232
232
Action :: Do ( a) | Action :: Undo ( a) => a,
233
233
}
234
234
}
235
- /// into_inner
235
+ /// stub ` into_inner`
236
236
pub fn into_inner ( self ) -> T {
237
237
match self {
238
238
Action :: Do ( a) | Action :: Undo ( a) => a,
@@ -274,9 +274,9 @@ impl<T> Action<T> {
274
274
#[ derive( Copy , Clone , Debug , Eq , PartialEq , Hash ) ]
275
275
#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
276
276
pub enum CommandItem < T > {
277
- /// A command typically created by [Commands::push](Commands#method.push)
277
+ /// A command typically created by [` Commands::push` ](Commands#method.push)
278
278
Command ( T ) ,
279
- /// Signify that `count` CommandItem previous to this item are undone.
279
+ /// Signify that `count` ` CommandItem` previous to this item are undone.
280
280
///
281
281
/// Where `count` refers to this variant field.
282
282
Undo ( usize ) ,
@@ -1920,7 +1920,7 @@ impl<T> IterRealized<'_, T> {
1920
1920
/// This same command is accessible by indexing [Commands] at this returned index.
1921
1921
///
1922
1922
/// This index can be used to set the first realized command with
1923
- /// [Commands::undo_or_redo_to_index](Commands#method.undo_or_redo_to_index).
1923
+ /// [` Commands::undo_or_redo_to_index` ](Commands#method.undo_or_redo_to_index).
1924
1924
pub fn index ( & self ) -> usize {
1925
1925
self . current
1926
1926
}
0 commit comments