File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ impl Fetches {
8181 pub fn is_empty ( & self ) -> bool {
8282 self . borrow_fetches ( ) . is_empty ( )
8383 }
84+
85+ /// Get the element at the given index
86+ pub fn get ( & self , index : usize ) -> Option < & Fetch < ' _ > > {
87+ self . borrow_fetches ( ) . get ( index)
88+ }
8489}
8590
8691/// An IMAP [`FETCH` response](https://tools.ietf.org/html/rfc3501#section-7.4.2) that contains
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ impl Names {
5858 pub fn is_empty ( & self ) -> bool {
5959 self . borrow_names ( ) . is_empty ( )
6060 }
61+
62+ /// Get the element at the given index
63+ pub fn get ( & self , index : usize ) -> Option < & Name < ' _ > > {
64+ self . borrow_names ( ) . get ( index)
65+ }
6166}
6267
6368/// A name that matches a `LIST` or `LSUB` command.
You can’t perform that action at this time.
0 commit comments