Struct sgf_render::GobanStyle
source · pub struct GobanStyle { /* private fields */ }Implementations§
source§impl GobanStyle
impl GobanStyle
pub fn line_color(&self) -> &str
pub fn line_width(&self) -> f64
pub fn hoshi_radius(&self) -> f64
pub fn background_fill(&self) -> &str
pub fn label_color(&self) -> &str
pub fn stone_fill(&self, color: StoneColor) -> Option<&str>
pub fn stone_stroke(&self, color: StoneColor) -> Option<&str>
pub fn markup_color(&self, color: Option<StoneColor>) -> &str
pub fn markup_stroke_width(&self) -> f64
pub fn selected_color(&self, color: Option<StoneColor>) -> &str
pub fn defs(&self) -> Result<Vec<Element>, MakeSvgError>
Trait Implementations§
source§impl Clone for GobanStyle
impl Clone for GobanStyle
source§fn clone(&self) -> GobanStyle
fn clone(&self) -> GobanStyle
Returns a copy 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 GobanStyle
impl Debug for GobanStyle
source§impl<'de> Deserialize<'de> for GobanStyle
impl<'de> Deserialize<'de> for GobanStyle
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 RefUnwindSafe for GobanStyle
impl Send for GobanStyle
impl Sync for GobanStyle
impl Unpin for GobanStyle
impl UnwindSafe for GobanStyle
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