pub struct Specification(pub Vec<Definition>);Tuple Fields§
§0: Vec<Definition>Implementations§
Source§impl Specification
impl Specification
pub fn from_typed_ast_with_properties( value: Specification, properties: ParserProperties, ) -> Self
pub fn from_typed_ast_with_properties_and_path( value: Specification, properties: ParserProperties, _path: impl AsRef<Path>, ) -> ParserResult<Self>
pub fn from_typed_ast_with_path( value: Specification, _path: impl AsRef<Path>, ) -> ParserResult<Self>
Sourcepub fn project_typed_ast_versions(
value: Specification,
properties: ParserProperties,
_path: impl AsRef<Path>,
) -> ParserResult<Vec<VersionedProjection>>
pub fn project_typed_ast_versions( value: Specification, properties: ParserProperties, _path: impl AsRef<Path>, ) -> ParserResult<Vec<VersionedProjection>>
Lowers a typed AST and returns one HIR projection per requested version.
Unversioned specifications produce exactly one projection without a
version. Versioned specifications produce one merged projection holding
one module per selected version (merged layout, the default), or one
projection per selected version (per_version layout).
Sourcepub fn project_typed_ast_with_properties_and_path(
value: Specification,
properties: ParserProperties,
path: impl AsRef<Path>,
) -> ParserResult<ProjectedHir>
pub fn project_typed_ast_with_properties_and_path( value: Specification, properties: ParserProperties, path: impl AsRef<Path>, ) -> ParserResult<ProjectedHir>
Lowers a typed AST and projects the first request of the merged layout.
Callers that need per-version output use Self::project_typed_ast_versions.
Trait Implementations§
Source§impl Clone for Specification
impl Clone for Specification
Source§impl Debug for Specification
impl Debug for Specification
Source§impl<'de> Deserialize<'de> for Specification
impl<'de> Deserialize<'de> for Specification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Specification> for Specification
impl From<Specification> for Specification
Source§fn from(value: Specification) -> Self
fn from(value: Specification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Specification
impl RefUnwindSafe for Specification
impl Send for Specification
impl Sync for Specification
impl Unpin for Specification
impl UnsafeUnpin for Specification
impl UnwindSafe for Specification
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