fn take_build_script_target(
    &self,
    all_targets: &mut Vec<BuildableTarget>,
  ) -> Option<BuildableTarget> {
    if !self.crate_settings.gen_buildrs {
      return None;
    }

    all_targets.iter()
      .position(|t| t.kind == "custom-build")
      .map(|idx| all_targets.remove(idx))
  }
/**
   * Extracts the (one and only) build script target from the provided set of build targets.
   *
   * This function mutates the provided list of build arguments. It removes the first (and usually,
   * only) found build script target.
   */
Extracts the (one and only) build script target from the provided set of build targets.
This function mutates the provided list of build arguments. It removes the first (and usually,
only) found build script target.
Extracts the ( one and only ) build script target from the provided set of build targets . This function mutates the provided list of build arguments . It removes the first ( and usually only ) found build script target .
fn take_build_script_target(
    &self,
    all_targets: &mut Vec<BuildableTarget>,
  ) -> Option<BuildableTarget> {
    if !self.crate_settings.gen_buildrs {
      return None;
    }
    all_targets.iter()
      .position(|t| t.kind == "custom-build")
      .map(|idx| all_targets.remove(idx))
  }
fn take_build_script_target ( & self , all_targets : & mut Vec < BuildableTarget > , ) -> Option < BuildableTarget > { if ! self . crate_settings . gen_buildrs { return None ; } all_targets . iter ( ) . position ( | t | t . kind == " " ) . map ( | idx | all_targets . remove ( idx ) ) }
Extracts the (one and only) build script target from the provided set of build targets.
Extracts the ( one and only ) build script target from the provided set of build targets .
&self
all_targets
&mut Vec<BuildableTarget>