@@ -46,7 +46,11 @@ pub trait BlockDataExt<S: Storage>: Send + Sync + 'static + std::fmt::Debug {
4646 fn is_local_mut ( & mut self ) -> Option < & mut dyn BlockDataViews < S > > ;
4747
4848 /// Get a read-only view of this block's storage for a layer
49- fn layer_view ( & self , layer_idx : usize , outer_idx : usize ) -> BlockResult < view:: LayerView < S > > {
49+ fn layer_view (
50+ & self ,
51+ layer_idx : usize ,
52+ outer_idx : usize ,
53+ ) -> BlockResult < view:: LayerView < ' _ , S > > {
5054 match self . is_local ( ) {
5155 Some ( views) => views. local_layer_view ( layer_idx, outer_idx) ,
5256 None => Err ( BlockError :: ViewsNotAvailableOnLogicalBlocks ) ,
@@ -58,23 +62,23 @@ pub trait BlockDataExt<S: Storage>: Send + Sync + 'static + std::fmt::Debug {
5862 & mut self ,
5963 layer_idx : usize ,
6064 outer_idx : usize ,
61- ) -> BlockResult < view:: LayerViewMut < S > > {
65+ ) -> BlockResult < view:: LayerViewMut < ' _ , S > > {
6266 match self . is_local_mut ( ) {
6367 Some ( views) => views. local_layer_view_mut ( layer_idx, outer_idx) ,
6468 None => Err ( BlockError :: ViewsNotAvailableOnLogicalBlocks ) ,
6569 }
6670 }
6771
6872 /// Get a read-only view of this block's storage
69- fn block_view ( & self ) -> BlockResult < view:: BlockView < S > > {
73+ fn block_view ( & self ) -> BlockResult < view:: BlockView < ' _ , S > > {
7074 match self . is_local ( ) {
7175 Some ( views) => views. local_block_view ( ) ,
7276 None => Err ( BlockError :: ViewsNotAvailableOnLogicalBlocks ) ,
7377 }
7478 }
7579
7680 /// Get a mutable view of this block's storage
77- fn block_view_mut ( & mut self ) -> BlockResult < view:: BlockViewMut < S > > {
81+ fn block_view_mut ( & mut self ) -> BlockResult < view:: BlockViewMut < ' _ , S > > {
7882 match self . is_local_mut ( ) {
7983 Some ( views) => views. local_block_view_mut ( ) ,
8084 None => Err ( BlockError :: ViewsNotAvailableOnLogicalBlocks ) ,
@@ -88,20 +92,20 @@ pub trait BlockDataViews<S: Storage> {
8892 & self ,
8993 layer_idx : usize ,
9094 outer_idx : usize ,
91- ) -> BlockResult < view:: LayerView < S > > ;
95+ ) -> BlockResult < view:: LayerView < ' _ , S > > ;
9296
9397 /// Get a mutable view of this block's storage for a layer
9498 fn local_layer_view_mut (
9599 & mut self ,
96100 layer_idx : usize ,
97101 outer_idx : usize ,
98- ) -> BlockResult < view:: LayerViewMut < S > > ;
102+ ) -> BlockResult < view:: LayerViewMut < ' _ , S > > ;
99103
100104 /// Get a read-only view of this block's storage
101- fn local_block_view ( & self ) -> BlockResult < view:: BlockView < S > > ;
105+ fn local_block_view ( & self ) -> BlockResult < view:: BlockView < ' _ , S > > ;
102106
103107 /// Get a mutable view of this block's storage
104- fn local_block_view_mut ( & mut self ) -> BlockResult < view:: BlockViewMut < S > > ;
108+ fn local_block_view_mut ( & mut self ) -> BlockResult < view:: BlockViewMut < ' _ , S > > ;
105109}
106110
107111pub trait BlockDataProvider : StorageTypeProvider {
0 commit comments