Skip to main content

ModuleDisplayDefault

Trait ModuleDisplayDefault 

pub trait ModuleDisplayDefault {
    // Required method
    fn content(&self, _content: Content) -> Option<Content>;

    // Provided method
    fn num_params(&self) -> usize { ... }
}
Expand description

Default display settings for a module.

Required Methods§

fn content(&self, _content: Content) -> Option<Content>

Attributes of the module used for display purposes.

§Arguments
  • _content - The content object that contains display settings and attributes.
§Returns

An optional content object containing the display attributes.

Provided Methods§

fn num_params(&self) -> usize

Gets the number of the parameters of the module.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl ModuleDisplayDefault for String

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for bool

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for f32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for f64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i8

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i16

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for isize

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for str

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u8

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u16

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for usize

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7, L8, L9> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7, L8, L9)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7, L8> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7, L8)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4> ModuleDisplayDefault for (L0, L1, L2, L3, L4)

§

fn content(&self, content: Content) -> Option<Content>