pub struct TypeAliasDef {
pub name: &'static str,
pub type_: TypeInfo,
pub doc: &'static str,
}Fields§
§name: &'static str§type_: TypeInfo§doc: &'static strImplementations§
Source§impl TypeAliasDef
impl TypeAliasDef
Sourcepub fn fmt_with_config(
&self,
target_module: &str,
f: &mut Formatter<'_>,
use_type_statement: bool,
) -> Result
pub fn fmt_with_config( &self, target_module: &str, f: &mut Formatter<'_>, use_type_statement: bool, ) -> Result
Format type alias with module-qualified names and syntax based on configuration
Sourcepub fn fmt_for_module(
&self,
target_module: &str,
f: &mut Formatter<'_>,
) -> Result
pub fn fmt_for_module( &self, target_module: &str, f: &mut Formatter<'_>, ) -> Result
Existing method for backward compatibility (uses pre-3.12 syntax)
Trait Implementations§
Source§impl Clone for TypeAliasDef
impl Clone for TypeAliasDef
Source§fn clone(&self) -> TypeAliasDef
fn clone(&self) -> TypeAliasDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeAliasDef
impl Debug for TypeAliasDef
Source§impl Display for TypeAliasDef
impl Display for TypeAliasDef
Source§impl From<&TypeAliasInfo> for TypeAliasDef
impl From<&TypeAliasInfo> for TypeAliasDef
Source§fn from(info: &TypeAliasInfo) -> Self
fn from(info: &TypeAliasInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TypeAliasDef
impl PartialEq for TypeAliasDef
impl StructuralPartialEq for TypeAliasDef
Auto Trait Implementations§
impl Freeze for TypeAliasDef
impl RefUnwindSafe for TypeAliasDef
impl Send for TypeAliasDef
impl Sync for TypeAliasDef
impl Unpin for TypeAliasDef
impl UnwindSafe for TypeAliasDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more