raui_core

Trait Prefab

source
pub trait Prefab: Serialize + DeserializeOwned {
    // Provided methods
    fn from_prefab(data: PrefabValue) -> Result<Self, PrefabError> { ... }
    fn to_prefab(&self) -> Result<PrefabValue, PrefabError> { ... }
}
Expand description

The Prefab trait is implemented for types that are able to translate to and from PrefabValue’s

PrefabValue’s can then, in turn, be serialized or deserialized for persistance, transfer, or other purposes.

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Prefab for bool

source§

impl Prefab for f32

source§

impl Prefab for f64

source§

impl Prefab for i8

source§

impl Prefab for i16

source§

impl Prefab for i32

source§

impl Prefab for i64

source§

impl Prefab for i128

source§

impl Prefab for isize

source§

impl Prefab for u8

source§

impl Prefab for u16

source§

impl Prefab for u32

source§

impl Prefab for u64

source§

impl Prefab for u128

source§

impl Prefab for ()

source§

impl Prefab for usize

source§

impl Prefab for String

Implementors§

source§

impl Prefab for PrefabValue

source§

impl Prefab for TextInputMode

source§

impl Prefab for OptionsViewMode

source§

impl Prefab for WidgetIdOrRef

source§

impl Prefab for PropsGroupPrefab

source§

impl Prefab for AnchorNotifyProps

source§

impl Prefab for AnchorProps

source§

impl Prefab for PivotBoxProps

source§

impl Prefab for ContentBoxProps

source§

impl Prefab for ContextBoxProps

source§

impl Prefab for FlexBoxProps

source§

impl Prefab for GridBoxProps

source§

impl Prefab for HiddenBoxProps

source§

impl Prefab for HorizontalBoxProps

source§

impl Prefab for PortalsContainer

source§

impl Prefab for ScrollBoxOwner

source§

impl Prefab for SideScrollbarsProps

source§

impl Prefab for SideScrollbarsState

source§

impl Prefab for SizeBoxProps

source§

impl Prefab for SwitchBoxProps

source§

impl Prefab for TabPlateProps

source§

impl Prefab for TabsBoxProps

source§

impl Prefab for TabsState

source§

impl Prefab for TooltipState

source§

impl Prefab for VariantBoxProps

source§

impl Prefab for VerticalBoxProps

source§

impl Prefab for WrapBoxProps

source§

impl Prefab for ImageBoxProps

source§

impl Prefab for ButtonNotifyProps

source§

impl Prefab for ButtonProps

source§

impl Prefab for TextInputControlNotifyProps

source§

impl Prefab for TextInputNotifyProps

source§

impl Prefab for TextInputProps

source§

impl Prefab for TextInputState

source§

impl Prefab for NavAutoSelect

source§

impl Prefab for NavContainerActive

source§

impl Prefab for NavContainerDesiredSelection

source§

impl Prefab for NavItemActive

source§

impl Prefab for NavJumpActive

source§

impl Prefab for NavJumpLooped

source§

impl Prefab for NavJumpMapProps

source§

impl Prefab for NavLockingActive

source§

impl Prefab for NavTrackingActive

source§

impl Prefab for NavTrackingNotifyProps

source§

impl Prefab for NavTrackingProps

source§

impl Prefab for OptionsViewProps

source§

impl Prefab for ScrollViewNotifyProps

source§

impl Prefab for ScrollViewRange

source§

impl Prefab for ScrollViewState

source§

impl Prefab for SliderViewProps

source§

impl Prefab for SpaceBoxProps

source§

impl Prefab for MessageForwardProps

source§

impl Prefab for RelativeLayoutProps

source§

impl Prefab for WidgetAlpha

source§

impl Prefab for TextBoxProps

source§

impl Prefab for WidgetId

source§

impl Prefab for WidgetRef

source§

impl Prefab for ContentBoxItemLayout

source§

impl Prefab for FlexBoxItemLayout

source§

impl Prefab for GridBoxItemLayout

source§

impl Prefab for Color

source§

impl Prefab for IntRect

source§

impl Prefab for IntVec2

source§

impl Prefab for Rect

source§

impl Prefab for Transform

source§

impl Prefab for Vec2