pub struct SourceFile {
pub name: String,
pub annotations: Option<Annotations>,
}Expand description
Individual source file
Fields§
§name: StringName/path of the source file
annotations: Option<Annotations>Optional annotations
Trait Implementations§
Source§impl Debug for SourceFile
impl Debug for SourceFile
Source§impl Default for SourceFile
impl Default for SourceFile
Source§fn default() -> SourceFile
fn default() -> SourceFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for SourceFile
impl PartialEq for SourceFile
Source§impl<'__input> XmlRead<'__input> for SourceFile
impl<'__input> XmlRead<'__input> for SourceFile
Source§impl XmlWrite for SourceFile
impl XmlWrite for SourceFile
impl StructuralPartialEq for SourceFile
Auto Trait Implementations§
impl Freeze for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
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> 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