pub struct RustStruct {
pub id: Id,
pub generic_types: Vec<TypeName>,
pub fields: Vec<RustField>,
pub comments: Vec<String>,
pub decorators: DecoratorSet,
}Expand description
Rust struct.
Fields§
§id: IdThe identifier for the struct.
generic_types: Vec<TypeName>The generic parameters that come after the struct name.
fields: Vec<RustField>The fields of the struct.
comments: Vec<String>Comments that were in the struct source. We copy comments over to the typeshared files, so we need to collect them here.
decorators: DecoratorSetAttributes that exist for this struct.
Trait Implementations§
Source§impl Clone for RustStruct
impl Clone for RustStruct
Source§fn clone(&self) -> RustStruct
fn clone(&self) -> RustStruct
Returns a copy 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 RustStruct
impl Debug for RustStruct
Source§impl PartialEq for RustStruct
impl PartialEq for RustStruct
impl StructuralPartialEq for RustStruct
Auto Trait Implementations§
impl Freeze for RustStruct
impl RefUnwindSafe for RustStruct
impl Send for RustStruct
impl Sync for RustStruct
impl Unpin for RustStruct
impl UnwindSafe for RustStruct
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