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
down: Option<bool>
Whether to produce zalgo below the text.
middle: Option<bool>
Whether to produce zalgo in the middle of the text.
size: Option<ZalgoSize>
The amount of zalgo to produce.
up: Option<bool>
Whether to produce zalgo above the text.
Methods
impl GeneratorArgs
[src]
impl GeneratorArgs
pub fn new(up: bool, middle: bool, down: bool, size: ZalgoSize) -> Self
[src]
pub fn new(up: bool, middle: bool, down: bool, size: ZalgoSize) -> Self
Creates new generator arguments.
Trait Implementations
impl Clone for GeneratorArgs
[src]
impl Clone for GeneratorArgs
fn clone(&self) -> GeneratorArgs
[src]
fn clone(&self) -> GeneratorArgs
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GeneratorArgs
[src]
impl Debug for GeneratorArgs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for GeneratorArgs
[src]
impl Default for GeneratorArgs
fn default() -> GeneratorArgs
[src]
fn default() -> GeneratorArgs
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for GeneratorArgs
impl Send for GeneratorArgs
impl Sync for GeneratorArgs
impl Sync for GeneratorArgs