pub struct Library {
pub identifier: Identifier,
pub metadata: Metadata,
pub root_module: Module,
}Expand description
Library representation.
Fields§
§identifier: Identifier§metadata: Metadata§root_module: ModuleImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Library
impl<'de> Deserialize<'de> for Library
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<'a> From<&'a mut Library> for VisitorsMut<'a>
impl<'a> From<&'a mut Library> for VisitorsMut<'a>
Source§impl<'a> HasBranches<&'a Library> for &'a Registry
impl<'a> HasBranches<&'a Library> for &'a Registry
Source§fn branches_impl(self) -> impl Iterator<Item = &'a Library>
fn branches_impl(self) -> impl Iterator<Item = &'a Library>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a Module> for &'a Library
impl<'a> HasBranches<&'a Module> for &'a Library
Source§fn branches_impl(self) -> impl Iterator<Item = &'a Module>
fn branches_impl(self) -> impl Iterator<Item = &'a Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a mut Library> for &'a mut Registry
impl<'a> HasBranches<&'a mut Library> for &'a mut Registry
Source§fn branches_impl(self) -> impl Iterator<Item = &'a mut Library>
fn branches_impl(self) -> impl Iterator<Item = &'a mut Library>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasBranches<&'a mut Module> for &'a mut Library
impl<'a> HasBranches<&'a mut Module> for &'a mut Library
Source§fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
fn branches_impl(self) -> impl Iterator<Item = &'a mut Module>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the
branches method from the HasBranchesAPIV2 trait.Source§impl<'a> HasGetMut<'a> for Library
impl<'a> HasGetMut<'a> for Library
Source§impl HasPathSegment for Library
impl HasPathSegment for Library
impl StructuralPartialEq for Library
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
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<T> HasBranchesAPI for T
impl<T> HasBranchesAPI for T
Source§fn branches_impl2<T>(self) -> impl Iterator<Item = T>where
Self: Sized + HasBranches<T>,
fn branches_impl2<T>(self) -> impl Iterator<Item = T>where
Self: Sized + HasBranches<T>,
This is used internally. Should use
branches instead.Source§impl<'a, T> HasBranchesAPIV2<'a> for T
impl<'a, T> HasBranchesAPIV2<'a> for T
Source§fn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
fn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type.
Source§fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type mutably.
fn all_branches<T>(&'a self) -> impl Iterator<Item = T>
fn all_branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>
Source§impl<T> HasGet for T
impl<T> HasGet for T
Source§impl<'a, T> HasGetAPI<'a> for T
impl<'a, T> HasGetAPI<'a> for T
Source§impl<'a, T> HasRelative<'a> for T
impl<'a, T> HasRelative<'a> for T
Source§fn relative<K>(&'a self, path: impl IntoIterator<Item = K>) -> Option<Self>where
K: Into<String>,
Self: KnowsVisitor<Visitor = Self> + Clone + HasRoot + HasParent + HasPathSegment,
&'a Self: HasBranches<Self>,
fn relative<K>(&'a self, path: impl IntoIterator<Item = K>) -> Option<Self>where
K: Into<String>,
Self: KnowsVisitor<Visitor = Self> + Clone + HasRoot + HasParent + HasPathSegment,
&'a Self: HasBranches<Self>,
Gets a relative path.
“self”, “root”, and “super” are reserved path segments.
“self” is the current object, “root” is the root object, and “super” is the parent object.
Source§impl<'a, T> HasRelativeMut<'a> for T
impl<'a, T> HasRelativeMut<'a> for T
Source§unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>,
) -> Option<Self>where
K: Into<String>,
Self: Sized + KnowsVisitor<VisitorMut = Self> + UnsafeClone + HasRootMut + HasParentMut + HasPathSegment,
&'a mut Self: HasBranches<Self>,
unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>,
) -> Option<Self>where
K: Into<String>,
Self: Sized + KnowsVisitor<VisitorMut = Self> + UnsafeClone + HasRootMut + HasParentMut + HasPathSegment,
&'a mut Self: HasBranches<Self>,
Gets a relative path mutably.
“self”, “root”, and “super” are reserved path segments.
“self” is the current object, “root” is the root object, and “super” is the parent object.