pub struct IterableDevlink<'a> { /* private fields */ }devlink only.Implementations§
Source§impl<'a> IterableDevlink<'a>
impl<'a> IterableDevlink<'a>
pub fn get_bus_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_dev_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_port_index(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_port_type(&self) -> Result<u16, ErrorContext>
pub fn get_port_type(&self) -> Result<u16, ErrorContext>
Associated type: PortType (enum)
pub fn get_port_desired_type(&self) -> Result<u16, ErrorContext>
pub fn get_port_netdev_ifindex(&self) -> Result<u32, ErrorContext>
pub fn get_port_netdev_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_port_ibdev_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_port_split_count(&self) -> Result<u32, ErrorContext>
pub fn get_port_split_group(&self) -> Result<u32, ErrorContext>
pub fn get_sb_index(&self) -> Result<u32, ErrorContext>
pub fn get_sb_size(&self) -> Result<u32, ErrorContext>
pub fn get_sb_ingress_pool_count(&self) -> Result<u16, ErrorContext>
pub fn get_sb_egress_pool_count(&self) -> Result<u16, ErrorContext>
pub fn get_sb_ingress_tc_count(&self) -> Result<u16, ErrorContext>
pub fn get_sb_egress_tc_count(&self) -> Result<u16, ErrorContext>
pub fn get_sb_pool_index(&self) -> Result<u16, ErrorContext>
Sourcepub fn get_sb_pool_type(&self) -> Result<u8, ErrorContext>
pub fn get_sb_pool_type(&self) -> Result<u8, ErrorContext>
Associated type: SbPoolType (enum)
pub fn get_sb_pool_size(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_sb_pool_threshold_type(&self) -> Result<u8, ErrorContext>
pub fn get_sb_pool_threshold_type(&self) -> Result<u8, ErrorContext>
Associated type: SbThresholdType (enum)
pub fn get_sb_threshold(&self) -> Result<u32, ErrorContext>
pub fn get_sb_tc_index(&self) -> Result<u16, ErrorContext>
pub fn get_sb_occ_cur(&self) -> Result<u32, ErrorContext>
pub fn get_sb_occ_max(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_eswitch_mode(&self) -> Result<u16, ErrorContext>
pub fn get_eswitch_mode(&self) -> Result<u16, ErrorContext>
Associated type: EswitchMode (enum)
Sourcepub fn get_eswitch_inline_mode(&self) -> Result<u8, ErrorContext>
pub fn get_eswitch_inline_mode(&self) -> Result<u8, ErrorContext>
Associated type: EswitchInlineMode (enum)
pub fn get_dpipe_tables( &self, ) -> Result<IterableDlDpipeTables<'a>, ErrorContext>
Sourcepub fn get_dpipe_table(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeTable<'a>> ⓘ
pub fn get_dpipe_table( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeTable<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_dpipe_table_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_dpipe_table_size(&self) -> Result<u64, ErrorContext>
pub fn get_dpipe_table_matches( &self, ) -> Result<IterableDlDpipeTableMatches<'a>, ErrorContext>
pub fn get_dpipe_table_actions( &self, ) -> Result<IterableDlDpipeTableActions<'a>, ErrorContext>
pub fn get_dpipe_table_counters_enabled(&self) -> Result<u8, ErrorContext>
pub fn get_dpipe_entries( &self, ) -> Result<IterableDlDpipeEntries<'a>, ErrorContext>
Sourcepub fn get_dpipe_entry(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeEntry<'a>> ⓘ
pub fn get_dpipe_entry( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeEntry<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_dpipe_entry_index(&self) -> Result<u64, ErrorContext>
pub fn get_dpipe_entry_match_values( &self, ) -> Result<IterableDlDpipeEntryMatchValues<'a>, ErrorContext>
pub fn get_dpipe_entry_action_values( &self, ) -> Result<IterableDlDpipeEntryActionValues<'a>, ErrorContext>
pub fn get_dpipe_entry_counter(&self) -> Result<u64, ErrorContext>
Sourcepub fn get_dpipe_match(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeMatch<'a>> ⓘ
pub fn get_dpipe_match( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeMatch<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_dpipe_match_value(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeMatchValue<'a>> ⓘ
pub fn get_dpipe_match_value( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeMatchValue<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_dpipe_match_type(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_match_type(&self) -> Result<u32, ErrorContext>
Associated type: DpipeMatchType (enum)
Sourcepub fn get_dpipe_action(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeAction<'a>> ⓘ
pub fn get_dpipe_action( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeAction<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_dpipe_action_value(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeActionValue<'a>> ⓘ
pub fn get_dpipe_action_value( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeActionValue<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_dpipe_action_type(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_action_type(&self) -> Result<u32, ErrorContext>
Associated type: DpipeActionType (enum)
pub fn get_dpipe_value(&self) -> Result<&'a [u8], ErrorContext>
pub fn get_dpipe_value_mask(&self) -> Result<&'a [u8], ErrorContext>
pub fn get_dpipe_value_mapping(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_headers( &self, ) -> Result<IterableDlDpipeHeaders<'a>, ErrorContext>
Sourcepub fn get_dpipe_header(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeHeader<'a>> ⓘ
pub fn get_dpipe_header( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeHeader<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_dpipe_header_name(&self) -> Result<&'a CStr, ErrorContext>
Sourcepub fn get_dpipe_header_id(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_header_id(&self) -> Result<u32, ErrorContext>
Associated type: DpipeHeaderId (enum)
pub fn get_dpipe_header_fields( &self, ) -> Result<IterableDlDpipeHeaderFields<'a>, ErrorContext>
pub fn get_dpipe_header_global(&self) -> Result<u8, ErrorContext>
pub fn get_dpipe_header_index(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_dpipe_field(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeField<'a>> ⓘ
pub fn get_dpipe_field( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlDpipeField<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_dpipe_field_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_dpipe_field_id(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_field_bitwidth(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_dpipe_field_mapping_type(&self) -> Result<u32, ErrorContext>
pub fn get_dpipe_field_mapping_type(&self) -> Result<u32, ErrorContext>
Associated type: DpipeFieldMappingType (enum)
pub fn get_pad(&self) -> Result<&'a [u8], ErrorContext>
Sourcepub fn get_eswitch_encap_mode(&self) -> Result<u8, ErrorContext>
pub fn get_eswitch_encap_mode(&self) -> Result<u8, ErrorContext>
Associated type: EswitchEncapMode (enum)
pub fn get_resource_list( &self, ) -> Result<IterableDlResourceList<'a>, ErrorContext>
Sourcepub fn get_resource(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlResource<'a>> ⓘ
pub fn get_resource( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlResource<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_resource_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_resource_id(&self) -> Result<u64, ErrorContext>
pub fn get_resource_size(&self) -> Result<u64, ErrorContext>
pub fn get_resource_size_new(&self) -> Result<u64, ErrorContext>
pub fn get_resource_size_valid(&self) -> Result<u8, ErrorContext>
pub fn get_resource_size_min(&self) -> Result<u64, ErrorContext>
pub fn get_resource_size_max(&self) -> Result<u64, ErrorContext>
pub fn get_resource_size_gran(&self) -> Result<u64, ErrorContext>
Sourcepub fn get_resource_unit(&self) -> Result<u8, ErrorContext>
pub fn get_resource_unit(&self) -> Result<u8, ErrorContext>
Associated type: ResourceUnit (enum)
pub fn get_resource_occ(&self) -> Result<u64, ErrorContext>
pub fn get_dpipe_table_resource_id(&self) -> Result<u64, ErrorContext>
pub fn get_dpipe_table_resource_units(&self) -> Result<u64, ErrorContext>
Sourcepub fn get_port_flavour(&self) -> Result<u16, ErrorContext>
pub fn get_port_flavour(&self) -> Result<u16, ErrorContext>
Associated type: PortFlavour (enum)
pub fn get_port_number(&self) -> Result<u32, ErrorContext>
pub fn get_port_split_subport_number(&self) -> Result<u32, ErrorContext>
pub fn get_param(&self) -> Result<IterableDlParam<'a>, ErrorContext>
pub fn get_param_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_param_generic(&self) -> Result<(), ErrorContext>
Sourcepub fn get_param_type(&self) -> Result<u8, ErrorContext>
pub fn get_param_type(&self) -> Result<u8, ErrorContext>
Associated type: VarAttrType (enum)
Sourcepub fn get_param_value_cmode(&self) -> Result<u8, ErrorContext>
pub fn get_param_value_cmode(&self) -> Result<u8, ErrorContext>
Associated type: ParamCmode (enum)
pub fn get_region_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_region_size(&self) -> Result<u64, ErrorContext>
pub fn get_region_snapshots( &self, ) -> Result<IterableDlRegionSnapshots<'a>, ErrorContext>
pub fn get_region_snapshot( &self, ) -> Result<IterableDlRegionSnapshot<'a>, ErrorContext>
pub fn get_region_snapshot_id(&self) -> Result<u32, ErrorContext>
pub fn get_region_chunks( &self, ) -> Result<IterableDlRegionChunks<'a>, ErrorContext>
pub fn get_region_chunk( &self, ) -> Result<IterableDlRegionChunk<'a>, ErrorContext>
pub fn get_region_chunk_data(&self) -> Result<&'a [u8], ErrorContext>
pub fn get_region_chunk_addr(&self) -> Result<u64, ErrorContext>
pub fn get_region_chunk_len(&self) -> Result<u64, ErrorContext>
pub fn get_info_driver_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_info_serial_number(&self) -> Result<&'a CStr, ErrorContext>
Sourcepub fn get_info_version_fixed(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
pub fn get_info_version_fixed( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_info_version_running(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
pub fn get_info_version_running( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_info_version_stored(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
pub fn get_info_version_stored( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlInfoVersion<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_info_version_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_info_version_value(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_sb_pool_cell_size(&self) -> Result<u32, ErrorContext>
pub fn get_fmsg(&self) -> Result<IterableDlFmsg<'a>, ErrorContext>
pub fn get_fmsg_obj_nest_start(&self) -> Result<(), ErrorContext>
pub fn get_fmsg_pair_nest_start(&self) -> Result<(), ErrorContext>
pub fn get_fmsg_arr_nest_start(&self) -> Result<(), ErrorContext>
pub fn get_fmsg_nest_end(&self) -> Result<(), ErrorContext>
pub fn get_fmsg_obj_name(&self) -> Result<&'a CStr, ErrorContext>
Sourcepub fn get_fmsg_obj_value_type(&self) -> Result<u8, ErrorContext>
pub fn get_fmsg_obj_value_type(&self) -> Result<u8, ErrorContext>
Associated type: VarAttrType (enum)
pub fn get_health_reporter( &self, ) -> Result<IterableDlHealthReporter<'a>, ErrorContext>
pub fn get_health_reporter_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_health_reporter_state(&self) -> Result<u8, ErrorContext>
pub fn get_health_reporter_err_count(&self) -> Result<u64, ErrorContext>
pub fn get_health_reporter_recover_count(&self) -> Result<u64, ErrorContext>
pub fn get_health_reporter_dump_ts(&self) -> Result<u64, ErrorContext>
pub fn get_health_reporter_graceful_period(&self) -> Result<u64, ErrorContext>
pub fn get_health_reporter_auto_recover(&self) -> Result<u8, ErrorContext>
pub fn get_flash_update_file_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_flash_update_component(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_flash_update_status_msg(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_flash_update_status_done(&self) -> Result<u64, ErrorContext>
pub fn get_flash_update_status_total(&self) -> Result<u64, ErrorContext>
pub fn get_port_pci_pf_number(&self) -> Result<u16, ErrorContext>
pub fn get_port_pci_vf_number(&self) -> Result<u16, ErrorContext>
pub fn get_stats(&self) -> Result<IterableDlAttrStats<'a>, ErrorContext>
pub fn get_trap_name(&self) -> Result<&'a CStr, ErrorContext>
Sourcepub fn get_trap_action(&self) -> Result<u8, ErrorContext>
pub fn get_trap_action(&self) -> Result<u8, ErrorContext>
Associated type: TrapAction (enum)
Sourcepub fn get_trap_type(&self) -> Result<u8, ErrorContext>
pub fn get_trap_type(&self) -> Result<u8, ErrorContext>
Associated type: TrapType (enum)
pub fn get_trap_generic(&self) -> Result<(), ErrorContext>
pub fn get_trap_metadata( &self, ) -> Result<IterableDlTrapMetadata<'a>, ErrorContext>
pub fn get_trap_group_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_reload_failed(&self) -> Result<u8, ErrorContext>
pub fn get_health_reporter_dump_ts_ns(&self) -> Result<u64, ErrorContext>
pub fn get_netns_fd(&self) -> Result<u32, ErrorContext>
pub fn get_netns_pid(&self) -> Result<u32, ErrorContext>
pub fn get_netns_id(&self) -> Result<u32, ErrorContext>
pub fn get_health_reporter_auto_dump(&self) -> Result<u8, ErrorContext>
pub fn get_trap_policer_id(&self) -> Result<u32, ErrorContext>
pub fn get_trap_policer_rate(&self) -> Result<u64, ErrorContext>
pub fn get_trap_policer_burst(&self) -> Result<u64, ErrorContext>
pub fn get_port_function( &self, ) -> Result<IterableDlPortFunction<'a>, ErrorContext>
pub fn get_info_board_serial_number(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_port_lanes(&self) -> Result<u32, ErrorContext>
pub fn get_port_splittable(&self) -> Result<u8, ErrorContext>
pub fn get_port_external(&self) -> Result<u8, ErrorContext>
pub fn get_port_controller_number(&self) -> Result<u32, ErrorContext>
pub fn get_flash_update_status_timeout(&self) -> Result<u64, ErrorContext>
Sourcepub fn get_flash_update_overwrite_mask(
&self,
) -> Result<BuiltinBitfield32, ErrorContext>
pub fn get_flash_update_overwrite_mask( &self, ) -> Result<BuiltinBitfield32, ErrorContext>
Associated type: FlashOverwrite (1 bit per enumeration)
Sourcepub fn get_reload_action(&self) -> Result<u8, ErrorContext>
pub fn get_reload_action(&self) -> Result<u8, ErrorContext>
Associated type: ReloadAction (enum)
Sourcepub fn get_reload_actions_performed(
&self,
) -> Result<BuiltinBitfield32, ErrorContext>
pub fn get_reload_actions_performed( &self, ) -> Result<BuiltinBitfield32, ErrorContext>
Associated type: ReloadAction (1 bit per enumeration)
Sourcepub fn get_reload_limits(&self) -> Result<BuiltinBitfield32, ErrorContext>
pub fn get_reload_limits(&self) -> Result<BuiltinBitfield32, ErrorContext>
Associated type: ReloadAction (1 bit per enumeration)
pub fn get_dev_stats(&self) -> Result<IterableDlDevStats<'a>, ErrorContext>
pub fn get_reload_stats( &self, ) -> Result<IterableDlReloadStats<'a>, ErrorContext>
Sourcepub fn get_reload_stats_entry(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadStatsEntry<'a>> ⓘ
pub fn get_reload_stats_entry( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadStatsEntry<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_reload_stats_limit(&self) -> Result<u8, ErrorContext>
pub fn get_reload_stats_value(&self) -> Result<u32, ErrorContext>
pub fn get_remote_reload_stats( &self, ) -> Result<IterableDlReloadStats<'a>, ErrorContext>
Sourcepub fn get_reload_action_info(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadActInfo<'a>> ⓘ
pub fn get_reload_action_info( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadActInfo<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_reload_action_stats(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadActStats<'a>> ⓘ
pub fn get_reload_action_stats( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlReloadActStats<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
pub fn get_port_pci_sf_number(&self) -> Result<u32, ErrorContext>
Sourcepub fn get_rate_type(&self) -> Result<u16, ErrorContext>
pub fn get_rate_type(&self) -> Result<u16, ErrorContext>
Associated type: RateType (enum)
pub fn get_rate_tx_max(&self) -> Result<u64, ErrorContext>
pub fn get_rate_node_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_rate_parent_node_name(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_region_max_snapshots(&self) -> Result<u32, ErrorContext>
pub fn get_linecard_index(&self) -> Result<u32, ErrorContext>
pub fn get_linecard_state(&self) -> Result<u8, ErrorContext>
pub fn get_linecard_type(&self) -> Result<&'a CStr, ErrorContext>
pub fn get_linecard_supported_types( &self, ) -> Result<IterableDlLinecardSupportedTypes<'a>, ErrorContext>
pub fn get_selftests(&self) -> Result<IterableDlSelftestId<'a>, ErrorContext>
pub fn get_rate_tx_priority(&self) -> Result<u32, ErrorContext>
pub fn get_rate_tx_weight(&self) -> Result<u32, ErrorContext>
pub fn get_region_direct(&self) -> Result<(), ErrorContext>
Sourcepub fn get_rate_tc_bws(
&self,
) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlRateTcBws<'a>> ⓘ
pub fn get_rate_tc_bws( &self, ) -> MultiAttrIterable<Self, Devlink<'a>, IterableDlRateTcBws<'a>> ⓘ
Attribute may repeat multiple times (treat it as array)
Sourcepub fn get_health_reporter_burst_period(&self) -> Result<u64, ErrorContext>
pub fn get_health_reporter_burst_period(&self) -> Result<u64, ErrorContext>
Time (in msec) for recoveries before starting the grace period.
Sourcepub fn get_param_reset_default(&self) -> Result<(), ErrorContext>
pub fn get_param_reset_default(&self) -> Result<(), ErrorContext>
Request restoring parameter to its default value.
Sourcepub fn get_index(&self) -> Result<u32, ErrorContext>
pub fn get_index(&self) -> Result<u32, ErrorContext>
Unique devlink instance index.
Sourcepub fn get_resource_scope_mask(&self) -> Result<u32, ErrorContext>
pub fn get_resource_scope_mask(&self) -> Result<u32, ErrorContext>
Bitmask selecting which resource classes to include in a resource-dump response. Bit 0 (dev) selects device-level resources; bit 1 (port) selects port-level resources. When absent all classes are returned.
Associated type: ResourceScope (1 bit per enumeration)
Trait Implementations§
Source§impl<'a> Clone for IterableDevlink<'a>
impl<'a> Clone for IterableDevlink<'a>
Source§impl<'a> Debug for IterableDevlink<'_>
impl<'a> Debug for IterableDevlink<'_>
Source§impl<'a> Default for IterableDevlink<'a>
impl<'a> Default for IterableDevlink<'a>
Source§impl<'a> Iterator for IterableDevlink<'a>
impl<'a> Iterator for IterableDevlink<'a>
Source§fn next(&mut self) -> Option<Self::Item>
fn next(&mut self) -> Option<Self::Item>
Source§fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
iter_next_chunk)N values. Read more1.0.0 (const: unstable) · Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
1.0.0 (const: unstable) · Source§fn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere
Self: Sized,
1.0.0 (const: unstable) · Source§fn last(self) -> Option<Self::Item>where
Self: Sized,
fn last(self) -> Option<Self::Item>where
Self: Sized,
Source§fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
iter_advance_by)n elements. Read more1.0.0 (const: unstable) · Source§fn nth(&mut self, n: usize) -> Option<Self::Item>
fn nth(&mut self, n: usize) -> Option<Self::Item>
nth element of the iterator. Read more1.28.0 (const: unstable) · Source§fn step_by(self, step: usize) -> StepBy<Self> ⓘwhere
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self> ⓘwhere
Self: Sized,
1.0.0 (const: unstable) · Source§fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> ⓘ
fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> ⓘ
1.0.0 (const: unstable) · Source§fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> ⓘwhere
Self: Sized,
U: IntoIterator,
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> ⓘwhere
Self: Sized,
U: IntoIterator,
Source§fn intersperse(self, separator: Self::Item) -> Intersperse<Self> ⓘ
fn intersperse(self, separator: Self::Item) -> Intersperse<Self> ⓘ
iter_intersperse)separator between items
of the original iterator. Read moreSource§fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> ⓘ
fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> ⓘ
iter_intersperse)separator
between items of the original iterator. Read more1.0.0 (const: unstable) · Source§fn map<B, F>(self, f: F) -> Map<Self, F> ⓘ
fn map<B, F>(self, f: F) -> Map<Self, F> ⓘ
1.21.0 (const: unstable) · Source§fn for_each<F>(self, f: F)
fn for_each<F>(self, f: F)
1.0.0 (const: unstable) · Source§fn filter<P>(self, predicate: P) -> Filter<Self, P> ⓘ
fn filter<P>(self, predicate: P) -> Filter<Self, P> ⓘ
1.0.0 (const: unstable) · Source§fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> ⓘ
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> ⓘ
1.0.0 (const: unstable) · Source§fn enumerate(self) -> Enumerate<Self> ⓘwhere
Self: Sized,
fn enumerate(self) -> Enumerate<Self> ⓘwhere
Self: Sized,
1.0.0 (const: unstable) · Source§fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> ⓘ
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> ⓘ
1.57.0 (const: unstable) · Source§fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> ⓘ
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> ⓘ
1.0.0 (const: unstable) · Source§fn skip(self, n: usize) -> Skip<Self> ⓘwhere
Self: Sized,
fn skip(self, n: usize) -> Skip<Self> ⓘwhere
Self: Sized,
n elements. Read more1.0.0 (const: unstable) · Source§fn take(self, n: usize) -> Take<Self> ⓘwhere
Self: Sized,
fn take(self, n: usize) -> Take<Self> ⓘwhere
Self: Sized,
n elements, or fewer
if the underlying iterator ends sooner. Read more1.0.0 (const: unstable) · Source§fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> ⓘ
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> ⓘ
1.0.0 (const: unstable) · Source§fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> ⓘ
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> ⓘ
1.29.0 (const: unstable) · Source§fn flatten(self) -> Flatten<Self> ⓘ
fn flatten(self) -> Flatten<Self> ⓘ
Source§fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N> ⓘ
fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N> ⓘ
iter_map_windows)f for each contiguous window of size N over
self and returns an iterator over the outputs of f. Like slice::windows(),
the windows during mapping overlap as well. Read more1.0.0 (const: unstable) · Source§fn inspect<F>(self, f: F) -> Inspect<Self, F> ⓘ
fn inspect<F>(self, f: F) -> Inspect<Self, F> ⓘ
1.0.0 (const: unstable) · Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Iterator. Read more1.0.0 (const: unstable) · Source§fn collect<B>(self) -> B
fn collect<B>(self) -> B
Source§fn try_collect<B>(
&mut self,
) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
fn try_collect<B>( &mut self, ) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
iterator_try_collect)Source§fn collect_into<E>(self, collection: &mut E) -> &mut E
fn collect_into<E>(self, collection: &mut E) -> &mut E
iter_collect_into)1.0.0 (const: unstable) · Source§fn partition<B, F>(self, f: F) -> (B, B)
fn partition<B, F>(self, f: F) -> (B, B)
Source§fn is_partitioned<P>(self, predicate: P) -> bool
fn is_partitioned<P>(self, predicate: P) -> bool
iter_is_partitioned)true precede all those that return false. Read more1.27.0 (const: unstable) · Source§fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
1.27.0 (const: unstable) · Source§fn try_for_each<F, R>(&mut self, f: F) -> R
fn try_for_each<F, R>(&mut self, f: F) -> R
1.0.0 (const: unstable) · Source§fn fold<B, F>(self, init: B, f: F) -> B
fn fold<B, F>(self, init: B, f: F) -> B
1.51.0 (const: unstable) · Source§fn reduce<F>(self, f: F) -> Option<Self::Item>
fn reduce<F>(self, f: F) -> Option<Self::Item>
Source§fn try_reduce<R>(
&mut self,
f: impl FnMut(Self::Item, Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
fn try_reduce<R>( &mut self, f: impl FnMut(Self::Item, Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
iterator_try_reduce)1.0.0 (const: unstable) · Source§fn all<F>(&mut self, f: F) -> bool
fn all<F>(&mut self, f: F) -> bool
1.0.0 (const: unstable) · Source§fn any<F>(&mut self, f: F) -> bool
fn any<F>(&mut self, f: F) -> bool
1.0.0 (const: unstable) · Source§fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
1.30.0 (const: unstable) · Source§fn find_map<B, F>(&mut self, f: F) -> Option<B>
fn find_map<B, F>(&mut self, f: F) -> Option<B>
Source§fn try_find<R>(
&mut self,
f: impl FnMut(&Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
fn try_find<R>( &mut self, f: impl FnMut(&Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
try_find)1.0.0 (const: unstable) · Source§fn position<P>(&mut self, predicate: P) -> Option<usize>
fn position<P>(&mut self, predicate: P) -> Option<usize>
1.0.0 (const: unstable) · Source§fn max(self) -> Option<Self::Item>
fn max(self) -> Option<Self::Item>
1.0.0 (const: unstable) · Source§fn min(self) -> Option<Self::Item>
fn min(self) -> Option<Self::Item>
1.6.0 (const: unstable) · Source§fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 (const: unstable) · Source§fn max_by<F>(self, compare: F) -> Option<Self::Item>
fn max_by<F>(self, compare: F) -> Option<Self::Item>
1.6.0 (const: unstable) · Source§fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 (const: unstable) · Source§fn min_by<F>(self, compare: F) -> Option<Self::Item>
fn min_by<F>(self, compare: F) -> Option<Self::Item>
1.0.0 (const: unstable) · Source§fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
1.36.0 (const: unstable) · Source§fn copied<'a, T>(self) -> Copied<Self> ⓘ
fn copied<'a, T>(self) -> Copied<Self> ⓘ
1.0.0 (const: unstable) · Source§fn cycle(self) -> Cycle<Self> ⓘ
fn cycle(self) -> Cycle<Self> ⓘ
Source§fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N> ⓘwhere
Self: Sized,
fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N> ⓘwhere
Self: Sized,
iter_array_chunks)N elements of the iterator at a time. Read more1.11.0 (const: unstable) · Source§fn product<P>(self) -> P
fn product<P>(self) -> P
Source§fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
iter_order_by)Iterator with those
of another with respect to the specified comparison function. Read more1.5.0 (const: unstable) · Source§fn partial_cmp<I>(self, other: I) -> Option<Ordering>
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
PartialOrd elements of
this Iterator with those of another. The comparison works like short-circuit
evaluation, returning a result without comparing the remaining elements.
As soon as an order can be determined, the evaluation stops and a result is returned. Read moreSource§fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
iter_order_by)Iterator with those
of another with respect to the specified comparison function. Read moreSource§fn eq_by<I, F>(self, other: I, eq: F) -> bool
fn eq_by<I, F>(self, other: I, eq: F) -> bool
iter_order_by)1.5.0 (const: unstable) · Source§fn lt<I>(self, other: I) -> bool
fn lt<I>(self, other: I) -> bool
Iterator are lexicographically
less than those of another. Read more1.5.0 (const: unstable) · Source§fn le<I>(self, other: I) -> bool
fn le<I>(self, other: I) -> bool
Iterator are lexicographically
less or equal to those of another. Read more1.5.0 (const: unstable) · Source§fn gt<I>(self, other: I) -> bool
fn gt<I>(self, other: I) -> bool
Iterator are lexicographically
greater than those of another. Read more1.5.0 (const: unstable) · Source§fn ge<I>(self, other: I) -> bool
fn ge<I>(self, other: I) -> bool
Iterator are lexicographically
greater than or equal to those of another. Read more