Skip to main content

Present

Trait Present 

Source
pub trait Present {
    const INPUT: Input;
    const SEARCH: Search;

    // Required method
    fn csv(&self) -> String;

    // Provided method
    fn write_localized(&self, out: &mut String, _conventions: &dyn Conventions) { ... }
}

Required Associated Constants§

Required Methods§

Source

fn csv(&self) -> String

Provided Methods§

Source

fn write_localized(&self, out: &mut String, _conventions: &dyn Conventions)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Present for String

Source§

const INPUT: Input = TEXT

Source§

const SEARCH: Search = crate::Search::Text

Source§

fn csv(&self) -> String

Source§

impl Present for Uuid

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

fn csv(&self) -> String

Source§

impl Present for bool

Source§

const INPUT: Input

Source§

const SEARCH: Search = Search::Exact

Source§

fn csv(&self) -> String

Source§

impl Present for i16

Source§

const INPUT: Input = INTEGER

Source§

const SEARCH: Search = Search::Number

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Source§

impl Present for i32

Source§

const INPUT: Input = INTEGER

Source§

const SEARCH: Search = Search::Number

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Source§

impl Present for i64

Source§

const INPUT: Input = INTEGER

Source§

const SEARCH: Search = Search::Number

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Source§

impl Present for u16

Source§

const INPUT: Input = INTEGER

Source§

const SEARCH: Search = Search::Number

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Source§

impl Present for u32

Source§

const INPUT: Input = INTEGER

Source§

const SEARCH: Search = Search::Number

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Source§

impl<T: Present> Present for Option<T>

Source§

const INPUT: Input = T::INPUT

Source§

const SEARCH: Search = T::SEARCH

Source§

fn csv(&self) -> String

Source§

fn write_localized(&self, out: &mut String, conventions: &dyn Conventions)

Implementors§

Source§

impl Present for Coordinate

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Skipped

Source§

impl Present for Currency

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Date

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Time

Source§

impl Present for Email

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Instant

The control shows and reads the app’s display zone (SOFIE_TIME_ZONE); a time a user types on their own wall clock belongs in LocalDateTime.

Source§

const INPUT: Input

Source§

const SEARCH: Search = Search::Time

Source§

impl Present for LocalDateTime

Sorted by its wall-clock time: an instant may not exist for it.

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Time

Source§

impl Present for Locale

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Money

Source§

const INPUT: Input

Source§

const SEARCH: Search = Search::Number

Source§

impl Present for Percentage

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Number

Source§

impl Present for PersonName

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Text

Source§

impl Present for PhoneNumber

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Slug

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for TimeOfDay

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Time

Source§

impl Present for TimeZone

Source§

const INPUT: Input = crate::present::TEXT

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Url

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl Present for Weekday

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Exact

Source§

impl<T> Present for Secret<T>

Source§

const INPUT: Input

Source§

const SEARCH: Search = Search::Skipped

Source§

impl<U: Unit> Present for Measurement<U>

Source§

const INPUT: Input

Source§

const SEARCH: Search = crate::Search::Number

Source§

impl<V: SurfacesFromInner> Present for V