@@ -141,7 +141,7 @@ impl DevicePathNode {
141141 }
142142
143143 /// Cast to a [`FfiDevicePath`] pointer.
144- pub fn as_ffi_ptr ( & self ) -> * const FfiDevicePath {
144+ pub const fn as_ffi_ptr ( & self ) -> * const FfiDevicePath {
145145 let ptr: * const Self = self ;
146146 ptr. cast :: < FfiDevicePath > ( )
147147 }
@@ -199,7 +199,7 @@ impl DevicePathInstance {
199199 /// reached.
200200 ///
201201 /// [`DevicePathNodes`]: DevicePathNode
202- pub fn node_iter ( & self ) -> DevicePathNodeIterator {
202+ pub const fn node_iter ( & self ) -> DevicePathNodeIterator {
203203 DevicePathNodeIterator {
204204 nodes : & self . data ,
205205 stop_condition : StopCondition :: AnyEndNode ,
@@ -271,7 +271,7 @@ impl DevicePath {
271271 }
272272
273273 /// Get an iterator over the [`DevicePathInstance`]s in this path.
274- pub fn instance_iter ( & self ) -> DevicePathInstanceIterator {
274+ pub const fn instance_iter ( & self ) -> DevicePathInstanceIterator {
275275 DevicePathInstanceIterator {
276276 remaining_path : Some ( self ) ,
277277 }
@@ -281,7 +281,7 @@ impl DevicePath {
281281 /// `self`. Iteration ends when a path is reached where
282282 /// [`is_end_entire`][DevicePathNode::is_end_entire] is true. That ending
283283 /// path is not returned by the iterator.
284- pub fn node_iter ( & self ) -> DevicePathNodeIterator {
284+ pub const fn node_iter ( & self ) -> DevicePathNodeIterator {
285285 DevicePathNodeIterator {
286286 nodes : & self . data ,
287287 stop_condition : StopCondition :: EndEntireNode ,
0 commit comments