pub struct TypeSynonym {
pub name: String,
pub params: Vec<String>,
pub def: String,
}Expand description
A type synonym definition.
Fields§
§name: StringName of the synonym
params: Vec<String>Type parameters
def: StringDefinition
Implementations§
Trait Implementations§
Source§impl Clone for TypeSynonym
impl Clone for TypeSynonym
Source§fn clone(&self) -> TypeSynonym
fn clone(&self) -> TypeSynonym
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 moreAuto Trait Implementations§
impl Freeze for TypeSynonym
impl RefUnwindSafe for TypeSynonym
impl Send for TypeSynonym
impl Sync for TypeSynonym
impl Unpin for TypeSynonym
impl UnsafeUnpin for TypeSynonym
impl UnwindSafe for TypeSynonym
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