FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextInfo

    struct · ferroui-base · v0.5.0

    struct TextInfo
    

    The text conventions of a culture (C# TextInfo).

    Only the conventions of the invariant culture are built in: those of other cultures come from the provider registered with the locator (see ICultureDataProvider); a culture without data gets the conventions of its nearest parent that has data and finally the invariant ones.

    View source

    Members

    new

    fn new() -> TextInfo
    

    The conventions of the invariant culture, to be changed with the setters.

    Source

    invariant_info

    fn invariant_info() -> Rc<TextInfo>
    

    The conventions of the invariant culture.

    Source

    current_info

    fn current_info() -> Rc<TextInfo>
    

    The conventions of the current culture.

    Source

    list_separator

    fn list_separator(self: &Self) -> &str
    

    Gets the string that separates items in a list (C# ListSeparator).

    Source

    set_list_separator

    fn set_list_separator(self: &mut Self, value: impl Into<String>)
    

    Sets the string that separates items in a list.

    Source

    with_list_separator

    fn with_list_separator(self: Self, value: impl Into<String>) -> Self
    

    The conventions with the given list separator.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.