pub struct ComponentPreview {
pub registry_index: Option<PathBuf>,
pub registry_root: Option<PathBuf>,
}Expand description
Replace <ComponentPreview name="X" /> with a CodeBlock carrying the
source of registry component X. registry_index is the JSON manifest;
registry_root is the directory referenced paths resolve against.
Fields§
§registry_index: Option<PathBuf>§registry_root: Option<PathBuf>Implementations§
Trait Implementations§
Source§impl Default for ComponentPreview
impl Default for ComponentPreview
Source§fn default() -> ComponentPreview
fn default() -> ComponentPreview
Returns the “default value” for a type. Read more
Source§impl Transformer for ComponentPreview
impl Transformer for ComponentPreview
Auto Trait Implementations§
impl Freeze for ComponentPreview
impl RefUnwindSafe for ComponentPreview
impl Send for ComponentPreview
impl Sync for ComponentPreview
impl Unpin for ComponentPreview
impl UnsafeUnpin for ComponentPreview
impl UnwindSafe for ComponentPreview
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