Struct two_face::acknowledgement::Acknowledgements
source · pub struct Acknowledgements { /* private fields */ }
Expand description
Holds all the license information for embedded syntaxes and themes
Implementations§
source§impl Acknowledgements
impl Acknowledgements
sourcepub fn to_md(&self) -> String
pub fn to_md(&self) -> String
Display the license information as Markdown
The output is roughly as follows
Most of the code for generating both theme and syntax dumps along with the
curation of said themes and syntaxes is taken from the
[`bat` project](https://github.com/sharkdp/bat).
# Syntaxes
<details>
<summary>syntaxes/01_Packages/Rust/LICENSE.txt</summary>
...Elided license text...
</details>
...
# Themes
<details>
<summary>themes/1337-Scheme/LICENSE</summary>
...Elided license text...
</details>
…
source§impl Acknowledgements
impl Acknowledgements
sourcepub fn for_syntaxes(&self) -> &[License]
pub fn for_syntaxes(&self) -> &[License]
Returns all of the acknowledgements specifically for embedded syntax definitions
sourcepub fn for_themes(&self) -> &[License]
pub fn for_themes(&self) -> &[License]
Returns all of the acknowledgements specifically for embedded theme definitions
Trait Implementations§
source§impl<'de> Deserialize<'de> for Acknowledgements
impl<'de> Deserialize<'de> for Acknowledgements
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
Auto Trait Implementations§
impl Freeze for Acknowledgements
impl RefUnwindSafe for Acknowledgements
impl Send for Acknowledgements
impl Sync for Acknowledgements
impl Unpin for Acknowledgements
impl UnwindSafe for Acknowledgements
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