pub struct Repository { /* private fields */ }Implementations§
Source§impl Repository
impl Repository
pub fn from_path_follow_namespaces_and_cache( cache: &mut HashMap<String, Self>, package_file: &str, girs_dirs: impl AsRef<Path>, ) -> Result<(), ParserError>
pub fn from_path_follow_namespaces( package_file: &str, girs_dirs: impl AsRef<Path>, ) -> Result<HashMap<String, Self>, ParserError>
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, ParserError>
pub fn version(&self) -> Option<&Version>
pub fn c_identifier_prefixes(&self) -> impl Iterator<Item = &str>
pub fn c_symbol_prefixes(&self) -> impl Iterator<Item = &str>
pub fn namespace_includes(&self) -> &[NamespaceInclude]
pub fn header_includes(&self) -> &[HeaderInclude]
pub fn packages(&self) -> &[Package]
pub fn namespace(&self) -> &Namespace
pub fn doc_format(&self) -> DocFormat
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Repository
impl Debug for Repository
Source§impl FromStr for Repository
impl FromStr for Repository
Source§impl XmlDeserialize for Repository
impl XmlDeserialize for Repository
fn deserialize<B: BufRead>( _tag_: &[u8], _reader_: &mut Reader<B>, _attrs_: Attributes<'_>, _is_empty_: bool, ) -> Self
fn de_root() -> Option<&'static [u8]>
A helper function used when ty =
untag. It could help
us to find out the children tags when deserializing§fn __deserialize_from_unparsed_array(
_array: Vec<(&'static [u8], Unparsed)>,
) -> Self
fn __deserialize_from_unparsed_array( _array: Vec<(&'static [u8], Unparsed)>, ) -> Self
A helper function used when handling the untag types. Read more
fn __deserialize_from_text(_: &str) -> Option<Self>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnsafeUnpin for Repository
impl UnwindSafe for Repository
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