@@ -130,7 +130,7 @@ impl DevicePathNode {
130130 }
131131
132132 /// Cast to a [`FfiDevicePath`] pointer.
133- pub fn as_ffi_ptr ( & self ) -> * const FfiDevicePath {
133+ pub const fn as_ffi_ptr ( & self ) -> * const FfiDevicePath {
134134 let ptr: * const Self = self ;
135135 ptr. cast :: < FfiDevicePath > ( )
136136 }
@@ -215,7 +215,7 @@ impl DevicePathInstance {
215215 /// reached.
216216 ///
217217 /// [`DevicePathNodes`]: DevicePathNode
218- pub fn node_iter ( & self ) -> DevicePathNodeIterator {
218+ pub const fn node_iter ( & self ) -> DevicePathNodeIterator {
219219 DevicePathNodeIterator {
220220 nodes : & self . data ,
221221 stop_condition : StopCondition :: AnyEndNode ,
@@ -287,7 +287,7 @@ impl DevicePath {
287287 }
288288
289289 /// Get an iterator over the [`DevicePathInstance`]s in this path.
290- pub fn instance_iter ( & self ) -> DevicePathInstanceIterator {
290+ pub const fn instance_iter ( & self ) -> DevicePathInstanceIterator {
291291 DevicePathInstanceIterator {
292292 remaining_path : Some ( self ) ,
293293 }
@@ -297,7 +297,7 @@ impl DevicePath {
297297 /// `self`. Iteration ends when a path is reached where
298298 /// [`is_end_entire`][DevicePathNode::is_end_entire] is true. That ending
299299 /// path is not returned by the iterator.
300- pub fn node_iter ( & self ) -> DevicePathNodeIterator {
300+ pub const fn node_iter ( & self ) -> DevicePathNodeIterator {
301301 DevicePathNodeIterator {
302302 nodes : & self . data ,
303303 stop_condition : StopCondition :: EndEntireNode ,
0 commit comments