pub struct SphinxBuilder { /* private fields */ }Implementations§
Source§impl SphinxBuilder
impl SphinxBuilder
pub fn new( config: BuildConfig, source_dir: PathBuf, output_dir: PathBuf, ) -> Result<Self>
pub fn set_parallel_jobs(&mut self, jobs: usize)
pub fn enable_incremental(&mut self)
Sourcepub fn fresh_env(&self) -> Result<()>
pub fn fresh_env(&self) -> Result<()>
Discard the saved environment before building (sphinx-build -E).
Sourcepub fn add_warning(&self, warning: BuildWarning)
pub fn add_warning(&self, warning: BuildWarning)
Add a warning to the collection
Sourcepub fn add_error(&self, error: BuildErrorReport)
pub fn add_error(&self, error: BuildErrorReport)
Add an error to the collection
Sourcepub fn should_fail_on_warning(&self) -> bool
pub fn should_fail_on_warning(&self) -> bool
Check if warnings should be treated as errors
pub async fn clean(&self) -> Result<()>
pub async fn build(&self) -> Result<BuildStats>
Auto Trait Implementations§
impl Freeze for SphinxBuilder
impl !RefUnwindSafe for SphinxBuilder
impl Send for SphinxBuilder
impl Sync for SphinxBuilder
impl Unpin for SphinxBuilder
impl UnsafeUnpin for SphinxBuilder
impl !UnwindSafe for SphinxBuilder
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