pub fn score< Ruler: TextWidth >( &self, ruler: &Ruler ) -> WidthOffset
	{
		if self.width.is_none() {

			panic!( "Cannot calculate the score of a SplitPoint before setting it's width." ); }


		self.width.unwrap() + self.priority - ruler.measure( &self.glue )
	}
// We substract the width of the glue, so that if two splitpoints would otherwise have the same score,
// the one that doesn't need eg. hyphens wins.
//
We substract the width of the glue, so that if two splitpoints would otherwise have the same score,
the one that doesn't need eg. hyphens wins.
We substract the width of the glue so that if two splitpoints would otherwise have the same score the one that doesn ' t need eg . hyphens wins .
pub fn score< Ruler: TextWidth >( &self, ruler: &Ruler ) -> WidthOffset
	{
		if self.width.is_none() {
			panic!( "Cannot calculate the score of a SplitPoint before setting it's width." ); }
		self.width.unwrap() + self.priority - ruler.measure( &self.glue )
	}
pub fn score < Ruler : TextWidth > ( & self , ruler : & Ruler ) -> WidthOffset { if self . width . is_none ( ) { panic ! ( " " ) ; } self . width . unwrap ( ) + self . priority - ruler . measure ( & self . glue ) }
We substract the width of the glue, so that if two splitpoints would otherwise have the same score,
the one that doesn't need eg.
We substract the width of the glue so that if two splitpoints would otherwise have the same score the one that doesn ' t need eg .
&self
ruler
&Ruler
&self
ruler
&Ruler