Skip to main content

Closable

Trait Closable 

Source
pub trait Closable: Send + Sync {
    // Required method
    fn close(&mut self);
}
Expand description

An iterator handle with an idempotent eager close — what the shared for…of close path calls on any of the three reader kinds.

Required Methods§

Source

fn close(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Closable for Option<ChargedLineReader>

Source§

fn close(&mut self)

Implementors§