aws_smithy_runtime_api::shared

Trait IntoShared

Source
pub trait IntoShared<Shared> {
    // Required method
    fn into_shared(self) -> Shared;
}
Expand description

Like the Into trait, but for (efficiently) converting into a shared type.

If the type is already a shared type, it won’t be nested in another shared type.

See the module docs for information about shared types.

Required Methods§

Source

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.

Implementors§

Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,