pub fn texture_id(&self) -> Option<canvas::TextureId> {
        match self {
            FillState::None                         => None,
            FillState::Color(_)                     => None,
            FillState::Texture(texture_id, _, _, _) => Some(*texture_id),
            FillState::LinearGradient(_, _, _, _)   => None
        }
    }
///
/// Returns the ID of the texture used by this state
///
Returns the ID of the texture used by this state
Returns the ID of the texture used by this state
pub fn texture_id(&self) -> Option<canvas::TextureId> {
        match self {
            FillState::None                         => None,
            FillState::Color(_)                     => None,
            FillState::Texture(texture_id, _, _, _) => Some(*texture_id),
            FillState::LinearGradient(_, _, _, _)   => None
        }
    }
pub fn texture_id ( & self ) -> Option < canvas :: TextureId > { match self { FillState :: None => None , FillState :: Color ( _ ) => None , FillState :: Texture ( texture_id , _ , _ , _ ) => Some ( * texture_id ) , FillState :: LinearGradient ( _ , _ , _ , _ ) => None } }
Returns the ID of the texture used by this state
Returns the ID of the texture used by this state
&self