pub struct SpecSource {
pub path: Option<PathBuf>,
pub toml: Option<String>,
pub tables: Vec<DesignTableFile>,
}Expand description
Spec file a sweep was read from.
Fields§
§path: Option<PathBuf>Path of the file as given, None for a spec built from flags.
toml: Option<String>Text of the file as written.
tables: Vec<DesignTableFile>Design tables the file reads.
Trait Implementations§
Source§impl Clone for SpecSource
impl Clone for SpecSource
Source§impl Debug for SpecSource
impl Debug for SpecSource
Source§impl Default for SpecSource
impl Default for SpecSource
impl Eq for SpecSource
Source§impl From<&ManifestSpecSource> for SpecSource
impl From<&ManifestSpecSource> for SpecSource
Source§fn from(source: &ManifestSpecSource) -> Self
fn from(source: &ManifestSpecSource) -> Self
Reads the source a manifest records. A table hash that is not 16 hexadecimal digits leaves its table out.
Source§impl From<&SpecSource> for ManifestSpecSource
impl From<&SpecSource> for ManifestSpecSource
Source§fn from(source: &SpecSource) -> Self
fn from(source: &SpecSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpecSource
impl PartialEq for SpecSource
impl StructuralPartialEq for SpecSource
Auto Trait Implementations§
impl Freeze for SpecSource
impl RefUnwindSafe for SpecSource
impl Send for SpecSource
impl Sync for SpecSource
impl Unpin for SpecSource
impl UnsafeUnpin for SpecSource
impl UnwindSafe for SpecSource
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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