Write documentation for iced_graphics

This commit is contained in:
Héctor Ramón Jiménez 2020-05-28 01:37:59 +02:00
parent 45511a442f
commit 2ca7e3c4b0
19 changed files with 271 additions and 19 deletions

View file

@ -12,6 +12,9 @@ pub enum Antialiasing {
}
impl Antialiasing {
/// Returns the amount of samples of the [`Antialiasing`].
///
/// [`Antialiasing`]: enum.Antialiasing.html
pub fn sample_count(self) -> u32 {
match self {
Antialiasing::MSAAx2 => 2,