How to Chain Method Calls in Rust

Chain methods in Rust by calling them sequentially on the result of the previous call, using .await for async operations.

Chain method calls in Rust by calling methods directly on the result of the previous method, using .await for asynchronous methods to resolve futures before the next call.

let response_text = trpl::get(url).await.text().await;
Html::parse(&response_text)
    .select_first("title")
    .map(|title| title.inner_html());