[][src]Struct streamson_lib::handler::println::PrintLn

pub struct PrintLn { /* fields omitted */ }

Handler responsible for sending data to stdout.

Implementations

impl PrintLn[src]

pub fn new() -> Self[src]

Creates new handler which output items to stdout.

pub fn set_show_path(self, show_path: bool) -> Self[src]

Set whether to show path

Arguments

  • show_path - should path be shown in the output

Example

use streamson_lib::handler;
let file = handler::PrintLn::new().set_show_path(true);

pub fn set_separator<S>(self, separator: S) -> Self where
    S: ToString
[src]

Set which separator will be used in the output

Note that every separator will be extended to every found item.

Arguments

  • separator - how found record will be separated

Example

use streamson_lib::handler;
let file = handler::PrintLn::new().set_separator("######\n");

Trait Implementations

impl Default for PrintLn[src]

impl Handler for PrintLn[src]

Auto Trait Implementations

impl RefUnwindSafe for PrintLn

impl Send for PrintLn

impl Sync for PrintLn

impl Unpin for PrintLn

impl UnwindSafe for PrintLn

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.