pub struct SourceFileBuilder { /* private fields */ }Expand description
A Builder for constructing a SourceFile
Implementations§
Source§impl SourceFileBuilder
impl SourceFileBuilder
Sourcepub fn new<Name, Code>(name: Name, code: Code) -> SourceFileBuilder
pub fn new<Name, Code>(name: Name, code: Code) -> SourceFileBuilder
Creates a new builder for a file named name.
Sourcepub fn finish(self) -> SourceFile
pub fn finish(self) -> SourceFile
Consumes self and returns the SourceFile.
Auto Trait Implementations§
impl Freeze for SourceFileBuilder
impl RefUnwindSafe for SourceFileBuilder
impl Send for SourceFileBuilder
impl Sync for SourceFileBuilder
impl Unpin for SourceFileBuilder
impl UnsafeUnpin for SourceFileBuilder
impl UnwindSafe for SourceFileBuilder
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, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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