Skip to main content

StoryArg

Trait StoryArg 

Source
pub trait StoryArg: Sized {
    // Required method
    fn story_arg() -> Self;
}
Expand description

Produces a single default story value for one component parameter.

Required Methods§

Source

fn story_arg() -> Self

Returns the default value used when a story parameter needs a seed value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StoryArg for &'static str

Source§

fn story_arg() -> Self

Uses placeholder copy for string controls.

Source§

impl StoryArg for bool

Source§

fn story_arg() -> Self

Source§

impl StoryArg for char

Source§

fn story_arg() -> Self

Source§

impl StoryArg for f32

Source§

fn story_arg() -> Self

Source§

impl StoryArg for f64

Source§

fn story_arg() -> Self

Source§

impl StoryArg for i8

Source§

fn story_arg() -> Self

Source§

impl StoryArg for i16

Source§

fn story_arg() -> Self

Source§

impl StoryArg for i32

Source§

fn story_arg() -> Self

Source§

impl StoryArg for i64

Source§

fn story_arg() -> Self

Source§

impl StoryArg for i128

Source§

fn story_arg() -> Self

Source§

impl StoryArg for isize

Source§

fn story_arg() -> Self

Source§

impl StoryArg for u8

Source§

fn story_arg() -> Self

Source§

impl StoryArg for u16

Source§

fn story_arg() -> Self

Source§

impl StoryArg for u32

Source§

fn story_arg() -> Self

Source§

impl StoryArg for u64

Source§

fn story_arg() -> Self

Source§

impl StoryArg for u128

Source§

fn story_arg() -> Self

Source§

impl StoryArg for usize

Source§

fn story_arg() -> Self

Source§

impl StoryArg for String

Source§

fn story_arg() -> Self

Uses placeholder copy for owned string controls.

Source§

impl StoryArg for Element

Source§

fn story_arg() -> Self

Produces placeholder markup for element slot arguments.

Source§

impl<T> StoryArg for Option<T>

Source§

fn story_arg() -> Self

Defaults optional values to None.

Source§

impl<T> StoryArg for Vec<T>

Source§

fn story_arg() -> Self

Defaults vector values to an empty collection.

Source§

impl<T: Sized + 'static> StoryArg for EventHandler<T>

Source§

fn story_arg() -> Self

Produces a no-op callback for event handler props.

Implementors§