Struct zalgo::GeneratorArgs[][src]

pub struct GeneratorArgs {
    pub down: Option<bool>,
    pub middle: Option<bool>,
    pub size: Option<ZalgoSize>,
    pub up: Option<bool>,
}

Arguments to provide to Generator::gen and Generator::simple_gen.

Examples

Instantiating args directly:

use zalgo::{GeneratorArgs, ZalgoSize};
 
GeneratorArgs {
    down: Some(true),
    size: Some(ZalgoSize::Mini),
    ..Default::default()
};

Creating args via GeneratorArgs::new:

use zalgo::{GeneratorArgs, ZalgoSize};
 
GeneratorArgs::new(false, false, true, ZalgoSize::Maxi);

Fields

Whether to produce zalgo below the text.

Whether to produce zalgo in the middle of the text.

The amount of zalgo to produce.

Whether to produce zalgo above the text.

Methods

impl GeneratorArgs
[src]

Creates new generator arguments.

Trait Implementations

impl Clone for GeneratorArgs
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GeneratorArgs
[src]

Formats the value using the given formatter. Read more

impl Default for GeneratorArgs
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations